カテゴリー
IT

SVN: server certificate verification failed

I faced such message when I typed “svn update” telling an SSL certification error occurred. Full message is

Server certificate verification failed: certificate has expired, certificate issued for a different hostname, issuer is not trusted

Explaining from the result, I added an option with these comma-separated keywords below;

–trust-server-cert-failures=unknown-ca,cn-mismatch,expired,not-yet-valid,other

I found this solution in the help of “svn update”. Type the command below and read the document carefully because I finally failed to find any advice of someone else.

% svn help update

–trust-server-cert-failures ARG : with –non-interactive, accept SSL server certificates with failures; ARG is comma-separated list of ‘unknown-ca’ (Unknown Authority), ‘cn-mismatch’ (Hostname mismatch), ‘expired’ (Expired certificate), ‘not-yet-valid’ (Not yet valid certificate) and ‘other’ (all other not separately classified certificate errors).

I guess that this problem is common even with “checkout” and other options.
I recommend you check which keyword you need.

I hope this helps you.

コマンドは見たらわかると思うので、日本語では要約にとどめます。

% svn up

でSSLのエラーが出たので、調べました。けっこうな時間を割きましたが、同じ解決策に至った方はおられないようでしたので、書き残します。同様の問題に苦しまれている方はご参照ください。

エラーメッセージは「SSLの証明書の期限が切れており、ホスト名も食い違っているため、発行元が信頼できない」といったところ。

コマンドのオプションのまとめが公式サイトを探しても見つけられなかったのですが、手元のコマンドのヘルプをよく見たらそれっぽいオプションがあったので、書いてみました。その結果、いけました。

たぶん not-yet-valid と other は今回の場合だと要らないと思いますが、試しませんでした。気になる方は調整してください。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください