keytool 在单个文件中导入多个证书

2022-01-25 00:00:00 ssl-certificate java

How to import multiple certificates in a single file with keytool [to cert store]?

keytool -importcert only imports the first one.

解决方案

If you want to include the CA certificates you should add the -trustcacerts option.

If you have multiple certificate chains in one PEM file you will have to split the file.

相关文章