1. 程式人生 > >harbor客戶端證書問題

harbor客戶端證書問題

In 教程 cer 客戶 extra The 就是 war tps

自己搭了個harbor來托管private docker image,按照官方的教程非常順利,最後通過jenkins打包後push docker image 的時候發現證書信任有問題了

Error response from daemon: Get https://harbor.XXX.net/v2/: x509: certificate signed by unknown authority

證書是let‘s encrypt簽發的,問題是系統的ca就是不信任,沒辦法,還是把證書的ca加到系統裏面去吧

簽發證書會留下ca.crt,拷貝到/etc/pki/ca-trust/source/anchors

然後運行update-ca-trust extract,

再登錄,

docker login harbo.xxx.net -u push

WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Login Succeeded

這樣就可以了!

harbor客戶端證書問題