I'm trying to access my own SVN server with the Cornerstone SVN client. I get the following error message:
Description : Unable to contact the repository at “https:/[email protected]:443” because an SSL session could not be established. Suggestion : This Mac was unable to present a valid certificate or the server's certificate was rejected as invalid.
Technical InformationError : V4SSLHandshakeFailureError \ Exception : ZSVNSSLHandshakeFailureException
Causal Information
Description : Unable to connect to a repository at URL 'https:/[email protected]/svn/robi' Status : 175002
Description : OPTIONS of 'https:/[email protected]/svn/robi': SSL handshake failed: SSL error code -1/1/336032856 (https:/bar.mooo.info) Status : 175002
I think I found the solution by googling and using the search function. Described on apache.org or on serverfault (SVN SSL negotiation failed).
This can happen when the hostname reported by the server does not the match hostname given in the SSL certificate. Make sure your server configuration uses correct values for ServerName and NameVirtualHost.
As embarrasing as it is, I can't implement it for two reasons.
A) I don't know where to edit the ServerName and NameVirtualHost (httpd.conf is not there in apache2 anymore)
B) I don't know which name I have to add there, the setup:
hostname: friedrich (in the internal network)
DDNS name: bar.mooo.info (as entered in the SVN client)
OS: Debian GNU/Linux wheezy/sid (3.2.0-4-amd64)
Apache version: Server version: Apache/2.2.22 (Debian)
more /etc/apache2/sites-available/ssl.conf :
[...]
<Location /svn> DAV svn SVNParentPath /srv/nas/hd0/svn # this line must be added if you want SSL enabled SSLRequireSSL </Location>
[...]
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key