20/02/2011
Subversion: when —trust-server-cert isn’t enough
Got a Subversion server with an SSL certificate that does not match your hostname? That’s a bit annoying but not a big deal either, just force the client to accept the certificate anyway… But what if you need to access it from an account for which you do not have a command prompt? With the Windows “network service” account for example? How are you going to store the credentials?
Unfortunately the “—trust-server-cert” flag won’t help in this case, as it will only accept valid certificates. Ah, if only the process could press “t” to temporarily accept the certificate… oh, wait!
echo t | svn <WHATEVER> --username foo --password bar
And off you go.