Windows – Trust SSL certificate to local system account

certificatesslssl-certificatewindows 7

I have the following need:

A windows service needs to connect to a svn repository through https. The service needs also to run as local system account for IO permissions on the machine.

Now when the service tries to connect to SVN, it throws an error saying that the certificate is not trusted (it's a self signed certificate).

I have no access to the service source code to add the svn option to trust certificate and accept it permanently. So I need to know how, in windows, add that SSL certificate to the local system account trusted certificates.

Is that possible, and if it is, what are the steps to do that?

Thanks.

Best Answer

  • Follow these steps to trust a certificate system-wide:

    1. Double-click the .crt file.

    2. Click Install certificate..., then Next >.

    3. Choose Place all certificates in the following store and click Browse...

    4. Choose Trusted Root Certification Authorities and click OK.

    5. Click Next >, then Finish.

    This has however the drawback that Windows will trust any certificate signed by the same CA.

  • Related Question