Ubuntu 使用笔记

  • 内容
  • 评论
  • 相关
文章目录
[隐藏]

Ubuntu添加可信任根证书

➜sudo cp CA.crt /usr/local/share/ca-certificates
➜sudo update-ca-certificates
Updating certificates in /etc/ssl/certs... 1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d... done. 

注:此方法添加的根证书无法删除(大雾)

将证书加入java中

keytool -keystore cacerts -importcert -alias xxnetca -file {the_path_to_ca_file}  

参考:Add a certificate to the Java CA store | Microsoft Azure