Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

Import a private key into a .jks

Can I import a private key (without the cretificate, just the key) into a .jks using the keytool command

Is my thinking on this correct ?
0
Anthony Lucia
Asked:
Anthony Lucia
1 Solution
 
Dave HoweSoftware and Hardware EngineerCommented:
No.

  The file format of the JKS file doesn't permit you to have a private key without at least one certificate, nor can the standard keytool import or export private keys. What you CAN do is import or export PFX files, using the importkeystore operation, or import/export certificates.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now