Configuring https:// on Tomcat is related to keystore file;
On DreamHost i bought Comodo certificate and IP for secure hosting, and I get Comodo Certificate, Private Key, Intermediate Certificate.
When saved the content for Certificate and Intermediate Certificate (—BEGIN CERTIFICATE—…----END CERTIFICATE—) to comodoCert.crt and comodoCertIntermediate.crt files respectively, and tried to import those to my self-generated keystore i get: “Input not an X.509 certificate”
Import approach is similar to: https://support.comodo.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=275
I also need to import some other certificates to my keystore when this is solved.
How to import Comodo certificate properly and how to make my Tomcat Trusted with self-generated keystore?
I’ve seen that error only when you import a wrong file. Ensure that you can actually read the certificates by opening them with a Text Editor (Notepad is fine)
Installing certificates into a Java Keystore is pretty easy as it is the same command over and over outside of changing the alias.
Did you create your keystore with keytool or OpenSSL?
Created keystore with keytool:
keytool -genkey -alias tomcat -keyalg RSA -keystore mykeystore.ks
Should i try with openssl? How to do it ASAP?
Yes, import does work properly in all cases except this and i’m wondering how is it possible to receive incorrect Commodo certiifcate content (—BEGIN CERTIFICATE— ----END CERTIFICATE----) via DreamHost?
Any experiences with DreamHost?
Is there any other suggestion where to host Trusted Tomcat?
Yes, import does work properly in all cases except this and i'm wondering how is it possible to receive incorrect Commodo certiifcate content (---BEGIN CERTIFICATE--- ----END CERTIFICATE----) via DreamHost?
You could try downloading our intermediates from here
Any experiences with DreamHost?
Not since at least 2007/2008, since then they have made a ton of changes.
I have installed certificates into JavaKeyStores all too often and it is usually pretty easy.