# WinRM Setup using Certificate

**URL:** <https://forum.ansible.com/t/winrm-setup-using-certificate/38863>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [September 13, 2024, 10:22am UTC](https://forum.ansible.com/t/winrm-setup-using-certificate/38863 "2024-09-13T10:22:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aamir](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/aamir/32/5623_2.png) [@Aamir](https://forum.ansible.com/u/Aamir)\
**Post date:** [September 13, 2024, 10:22am UTC](https://forum.ansible.com/t/winrm-setup-using-certificate/38863/1 "2024-09-13T10:22:06Z")

</div>

Hello everyone,

I am trying to automate the setup for winRM with certificate using ansible role, when I am trying to do that, at the end I am getting bellow error.

server6 | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “certificate: the specified credentials were rejected by the server”,  
“unreachable”: true  
}

I did the similar steps on bunch of windows server but manually and that’s working fine.

server5 | SUCCESS =\> {  
“changed”: false,  
“ping”: “pong”  
}

any suggestion what could be the reason for getting this error?
