问题
So just installed cruisecontrol.NET on my PC and I am using VisualSVN for the SVN hosting with https:// and a 'dummy' certificate. All this is on my local PC.
The problem is that when I try and run cruisecontrol.NET - it keeps giving me "Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted"
Im not sure how to make cruisecontrol.NET accept that the cert is OK ?
Any ideas ?
回答1:
Run certmgr.msc as the user who your CCNET service is running under. Then, add your SSL cert to the "Personal" cerfiticates in there. The cert will then be trusted.
But it sounds like you also issued the cert to the wrong hostname. So, to fix that, examine your certificate and see what hostname you assigned it for. My guess is that you assigned it to "localhost" and you're referring to your CCNET server by its network name, or vice-versa. You should make sure that whatever URL CCNet is going to matches the hostname on your certificate. So you will either need to change the machine name you're connecting to in CCNET, or you will have to re-issue your certificate.
来源:https://stackoverflow.com/questions/2266138/cruisecontrol-net-ssl