Common Keytool Commands

Source: Internet
Author: User

Common Keytool Commands
Keytool is a management tool for security keys and certificates in a Java environment. It manages a keystore (quite a database that can hold multiple certificates of up to $ s) in the chain of certificates associated with them, which stores the private key and validates the corresponding public key.

Keytool Common commands:
Check for a KeyStore

Keytool-list-v-keystore C:\server.jks

Check the contents of a KeyStore

Keytool-list-v-keystore C:\server.jks

Add a trust root certificate to the KeyStore file

Keytool-import-alias newroot-file Root.cer-keystore Server.jks

Import certificate signed by CA

Keytool-import-keystore C:\server.jks-alias Tomcat-file C:\cert.txt

Export a certificate file from KeyStore

Keytool-export-alias Myssl-keystore Server.jks-rfc-file Server.cer
* Note: "-RFC" means output files in base64 or binary output.

Remove a certificate from KeyStore

Keytool-delete-keystore Server.jks-alias Tomcat
* Note: A certificate with the alias Tomcat is removed.

Common Keytool Commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.