logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: can we convert *.cer file format to .JKS to be used tomcat
Author
amavila



Joined: 17 Jul 2015
Posts: 1
Location: India

PostPosted: Fri 17 Jul '15 10:49    Post subject: can we convert *.cer file format to .JKS to be used tomcat Reply with quote

Hi,

We would like to know if there is a way we can convert *.cer file format to .JKS
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Fri 17 Jul '15 11:41    Post subject: Reply with quote

from http://stackoverflow.com/questions/4325263/how-to-import-a-cer-certificate-into-a-java-keystore
Quote:


If you want to authenticate you need the private key. There's no other option.
A certificate is a public key with extra properties (like company name, country,...) that is signed by some Certificate authority that guarantees that the attached properties are true.
.CER files are certificates and don't have the private key. The private key is provided with a .PFX keystore file normally. If you really authenticate is because you already had imported the private key.
You normally can import .CER certificates without any problems with

Code:
    keytool -importcert -file certificate.cer -keystore keystore.jks -alias "Alias"


Back to top


Reply to topic   Topic: can we convert *.cer file format to .JKS to be used tomcat View previous topic :: View next topic
Post new topic   Forum Index -> Other Software