Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: can we convert *.cer file format to .JKS to be used tomcat |
|
Author |
|
amavila
Joined: 17 Jul 2015 Posts: 1 Location: India
|
Posted: Fri 17 Jul '15 10:49 Post subject: can we convert *.cer file format to .JKS to be used tomcat |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 17 Jul '15 11:41 Post subject: |
|
|
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 |
|
|
|
|
|
|