Problem
I can't find Hongkong Post Root CA in Java 17 cacerts
. I need to download and import it.
Steps
- 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
~/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
Top comments (0)