IDEA SVN创建连接时出错
背景
使用IDEA创建新的SVN连接时,IDEA报如下错误:
svn: E230001: Server SSL certificate verification failed: certificate issued for a different hostname
大意是 服务器SSL证书验证失败,证书是不同主机的证书
解决方法
- 打开settings -> subversion
或使用快捷键Ctrl+Shift+A,在操作中输入subversion
- 按如图所示配置,适用于 http://ip:port/svn…的方式
解释
报错含义是证书验证失败,而勾选的配置 是可以信任无效的证书。
Emulates the behavior when Subversion commands are executed directly from the terminal (in the interactive mode).
This is required to handle password/passphrase prompts for svn+ssh repositories, and trust invalid server invalid server certificates for https
模拟直接从终端(在交互模式下)执行subversion命令时的行为。
这是处理svn+ssh存储库的密码/口令提示所必需的,并信任无效的服务器https存储库的无效服务器证书