How do you accept an SSL certificate through the SVN command line?
Is there an command line option to auto accept a SSL certificate permanently using the SVN commandline in a way that avoids the prompt?
Solution 1:
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.
Solution 2:
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:
svn list [TARGET] << EOF
p
EOF
NOTE: The "p" above is for (p)ermanently.