在linux下使用GoAgent客户端的时候,需要导入CA.cer证书。
安装证书管理工具
apt-get install libnss3-tools
导入证书
$ certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n GoAgent -i ~/programs/goagent/local/CA.crt
如果输出:
certutil: function failed: security library: bad database.
说明数据库损坏,需要重建。
$ mv ~/.pki/nssdb ~/.pki/nssdb.corrupted
$ mkdir ~/.pki/nssdb
$ chmod 700 ~/.pki/nssdb
$ certutil -d sql:$HOME/.pki/nssdb -N
导入证书:
$ certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n GoAgent -i ~/programs/goagent/local/CA.crt

tips:

本文由wp2Blog导入,原文链接:http://devonios.com/certutil-%e5%af%bc%e5%85%a5-ca-%e8%af%81%e4%b9%a6.html

转载于:https://my.oschina.net/yangyan/blog/859353

相关文章:

  • 2022-12-23
  • 2021-09-16
  • 2021-08-31
  • 2021-10-24
  • 2021-05-14
  • 2021-06-03
  • 2022-01-19
猜你喜欢
  • 2021-11-15
  • 2021-12-23
  • 2021-12-22
  • 2021-06-05
  • 2021-11-26
相关资源
相似解决方案