Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creat a certificate for tomcat with a file CSR

 
Afranio
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a CSR file generated by tomcat and I want to create a certificate. can you help me?
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A csr file is created to obtain a certificate from a Certificate Authority like verisign.com or thawte.com.
So once you have your certreq.csr you have to buy your external certification and submit the csr file to the Certificate Authority. The submit process depends on the authority you choose and should consult their website.
From your Certificate Authority you will get:
.- A Root Certificate you have to import into you keystore with:
keytool -import -alias root -keystore <your_keystore_filename> -trustcacerts -file <root_cert_name>
.- And your new Certificate, you import with:
keytool -import -alias tomcat -keystore <your_keystore_filename> -trustcacerts -file <your_certificate_filename>

HTH
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic