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.

link|improve this question
Do you have access to the .crt file? – Dennis Dec 21 '11 at 13:20
I have it trusted on my user account, so I can export it from certmgr.msc – Matteo Mosca Dec 21 '11 at 13:37
feedback

1 Answer

up vote 2 down vote accepted

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.

link|improve this answer
I'll try and let you know. Thanks – Matteo Mosca Dec 21 '11 at 14:03
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.