如何在manjaro中加入可信任ca?

如何在manjaro中加入可信任ca?

這應該很簡單,但我做不到。我嘗試過的:

cp pets.crt /etc/ca-certificates/trust-source/anchors/
sudo trust extract-compat
sudo update-ca-trust extract
openssl verify pets.crt

我在最後一點上遇到了錯誤:

sudo openssl verify pets.crt                                                                                                                                                                                                                                                           
CN = api.pets.kruts.net
error 18 at 0 depth lookup: self-signed certificate
error pets.crt: verification failed

無論我做什麼都是一樣的。我的公司給了我這個證書//

答案1

在 Manjaro 中要匯入本機 crt,您必須先將憑證儲存在相信允許管理策略儲存項目的命令。

sudo trust anchor /path/to/the/root.crt
sudo update-ca-trust

現在在商店裡你運行更新 ca-trust完成。您不需要做任何其他事情。

信任錨預設指令--如果沒有傳遞標誌,則儲存 crt。

相關內容