Can't connect using winrm not accepting self-signed certs

My issue here: https://github.com/ansible/ansible/issues/28863

By default ConfigureRemotingForAnsible.ps1creates a self signed certificate which isn’t trusted by default.

How can I make it trusted?

Hi

As a quick starting step you can add the following to your inventory so that Ansible works with untrusted certificates.

ansible_winrm_server_cert_validation: ignore

If you want to actually connect with HTTPS and work with the trust mechanism without ignoring it you would need to import the certificates to the Ansible host’s trust store. I’ve never really done it myself but there would be some guides on the internet.

Thanks

Jordan