Ansible authentication with windows by using GoDaddy or third party certificates

Hi,

Need help on setting up authentication between ansible and windows by using GoDaddy certificates or any third party instead of Openssl or SelfSigned certificate.

I have tried many ways but its not working. i was able to import certificate to windows but when I was trying to map certificate with local user its not able to find thumbprint of imported certificate. so please someone help me to resolve this.

earlier i have tried with basic and openssl certificate auth and it was working.

any suggestions are well appreciated.

Thanks,
Karthik.

WinRM certificate auth require certain extensions and authentication methods to be enabled, you can’t just use a server authentication certificate that you would use for a website for this. We even document how to create these certs using PowerShell or OpenSSL https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#certificate. Essentially you need a certificate that is enabled for clientAuth (1.3.6.1.5.5.7.3.2) and then a subjectAltName with a specific text value that specifies your user name.

Hi,

Thanks for the reply and information. i have one question, can we use openssl CA for this purpose? and do you have any steps on how to create Openssl CA certificate?

Thanks in advance.

Regards,
Karthik.

This question has been answered many many times on various websites before:

https://gist.github.com/Soarez/9688998

https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309

https://stackoverflow.com/questions/10175812

https://www.openssl.org/docs/man1.0.2/man1/ca.html

Regards,

Antony.