Add Hongkong Post Root CA certificate to Java keystore

Problem

I can’t find Hongkong Post Root CA in Java 17 cacerts. I need to download and import it.

Steps

  1. Download from Hongkong Post

Please download “Hongkong Post Root CA 3”.

2. Execute the following command in terminal

sudo keytool -importcert -alias hongkongpostrootca3 -file ~/Downloads/root_ca_3_pem.cer -cacerts

Enter fullscreen mode Exit fullscreen mode

~/Downloads/root_ca_3_pem.cer is the file path of certificate downloaded in previous step.

hongkongpostrootca3 is just alias. You can give a different name.

3. It will ask for keystore password. The default one is changeit.

4. It will ask to confirm with message “Trust this certificate?”. Just enter yes.

5. The root CA is imported. We can check it with the following command.

sudo keytool -list -alias hongkongpostrootca3 -cacerts

Enter fullscreen mode Exit fullscreen mode

原文链接:Add Hongkong Post Root CA certificate to Java keystore

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容