Is it possible to upload more than 1 cert in trust store | Community
Skip to main content
Level 4
September 7, 2021
Solved

Is it possible to upload more than 1 cert in trust store

  • September 7, 2021
  • 2 replies
  • 2870 views

Hi Team,

 

Can anyone share more information on how to upload more than 1 cert in trust store ?

 

Thank you 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anny0505

Yes, You can upload multiple certs to your AEM Instance either through UI or with commands.

 

Here is the article to follow the steps.https://www.opsinventor.com/aem-ssl-setup-aem-6-1-6-2-java-keystore-based-ssl-configuration/

 

2 replies

Shubham_borole
Community Advisor
Community Advisor
September 7, 2021

You could use 

keytool –import –trustcacerts –file /path/to/ca/ca.cer –alias CA_ALIAS 
–keystore $JAVA_HOME/jre/lib/security/cacerts

Download your desired .cer files to a path and use above command with appropriate Alias names. If the cert already exists in the trust store it will notify.

See https://docs.oracle.com/en/java/javase/13/docs/specs/man/keytool.htmlfor more details.

Level 4
September 7, 2021

Hi @shubham_borole 

I was trying to upload a cert using UI (/libs/granite/security/content/truststore.html) but when I upload another cert it overrides the old cert file even they are different cert files. I can try using keytool command.

Anny0505
Community Advisor
Anny0505Community AdvisorAccepted solution
Community Advisor
September 7, 2021

Yes, You can upload multiple certs to your AEM Instance either through UI or with commands.

 

Here is the article to follow the steps.https://www.opsinventor.com/aem-ssl-setup-aem-6-1-6-2-java-keystore-based-ssl-configuration/

 

kautuk_sahni
Community Manager
Community Manager
September 9, 2021

@anny0505  Good to see you back inside the AEM Community. Keep the great work of assisting others going. Looking forward to more contributions from you. 

Kautuk Sahni