【问题标题】:SVN and SSL handshake failureSVN 和 SSL 握手失败
【发布时间】:2013-05-29 04:03:38
【问题描述】:

我想使用以下 SVN 命令访问我的 SVN 服务器:

svn info https://local.myserver.ne.jp:49158/svn/myproject --username guest --password xxxxx --no-auth-cache  -rHEAD

命令返回:

SSL handshake failed: SSL error: A TLS warning alert has been received. 

我已经生成了一个新证书,其中包含“local.myserver.ne.jp”作为 CN :

openssl req -new > new.ssl.csr

openssl rsa -in privkey.pem -out new.cert.key
openssl x509 -in new.ssl.csr -out new.cert.cert -req -signkey new.cert.key -days NNN

cp new.cert.cert /etc/ssl/certs/server.crt
cp new.cert.key /etc/ssl/certs/server.key

我已经用这 2 个文件更新了我的 ssl.conf(我用浏览器检查了证书的 CN,它是新的)。

我重试了 svn 命令,但我得到了同样的错误信息

SSL handshake failed: SSL error: A TLS warning alert has been received.

有人知道怎么解决吗?

感谢您的阅读

【问题讨论】:

    标签: apache svn ssl openssl


    【解决方案1】:

    我已经更改了 httpd.conf 文件中的“ServerName”值,现在可以使用了!

    ServerName 127.0.0.1:80 -> ServerName local.myserver.ne.jp

    谢谢

    【讨论】:

      猜你喜欢
      • 2012-06-18
      • 1970-01-01
      • 2018-07-28
      • 1970-01-01
      • 2012-10-11
      • 2015-03-16
      • 2021-12-28
      • 2018-10-17
      相关资源
      最近更新 更多