Is there an command line option to auto accept a SSL certificate permanently using the SVN commandline in a way that avoids the prompt?
Is there an command line option to auto accept a SSL certificate permanently using the SVN commandline in a way that avoids the prompt?
It depends somewhat on your version of SVN. Recent (1.6+) ones have the usual
--non-interactive
(which you want to use to avoid prompts) and also a--trust-server-cert
that may do what you want.Using
--trust-server-cert
will not permanently accept the SSL certificate. You can permanently accept the SSL certificate via the command line using Input Redirection and not using--non-interactive
.Here's an example for Unix/Linux:
NOTE: The "p" above is for (p)ermanently.
My solution uses expect. It isn't secure but it will work when the other solutions won't.
You should be able to download the certificate and then place it in the appropriate directory. Or you can download the CA certificate and then set the configuration option ssl-authority-files to trust that CA.
See the SSL Certificate Management section in the book.