Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Common Keytool commands

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Keytool is a tool for managing security keys and certificates in JAVA environment. It manages a keystore that stores private keys and validates the X.509 certificate chain associated with them (equivalent to a database that holds multiple X.509 standard certificates).

Common Keytool commands:

Check 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 a signed certificate from 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 to output the file as base64, otherwise as binary.

Delete a certificate from KEYSTORE

Keytool-delete-keystore server.jks-alias tomcat

* Note: the certificate aliased as tomcat has been deleted.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report