1. 程式人生 > >Error validating server certificate for https://192.168.101.106:443:

Error validating server certificate for https://192.168.101.106:443:

我的mac上的SVN今天突然間 不好使了 在進行SVN操作是報出警告資訊:

Error validating server certificate for 'https://xxxxxxx':443
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
 - The certificate hostname does not match.
Certificate information:
 - Hostname: xxxxxxx
 - Valid: xxxxxxx
 - Issuer: xxxxxx
 - Fingerprint: xxxxxxxxx
(R)eject, accept (t)emporarily or accept (p)ermanently? 
照理直接按p就可以讓svn以後忽略這個問題了,但是很奇怪,即便選擇了p,下次操作時還是會提示同樣的經過高,如果我只用命令操作問題

也不是太大,但是如果要用xcode進行程式碼的控制的話,就非常蛋疼了,簡直沒法用。

但是這也不是什麼大問題,只要在 ~/.subversion/servers 中新增幾行配置就輕鬆搞定了 具體操作如下:

(1) 用命令開啟servers配置檔案:open  ~/.subversion/servers 

  (2)   在servers配置檔案的末尾新增:

ssl-ignore-host-mismatch = true
          ssl-ignore-unknown-ca = true
          ssl-ignore-invalid-date = true 

 (3) 我是這樣搞定的,你試試吧

祝你好運!!

不過因為我這svn伺服器牽涉比較多,因此沒有在伺服器上找原因,用以下的方式得以解決

用客戶端工具TortoiseSVN->Settings

在左邊找到Saved Data->然後右邊找到Authentication data,點clear

然後再進入Myeclipse使用svn外掛就沒事兒了