Java keytool Import and delete certificates

Source: Internet
Author: User
Tags certificate fingerprint

1, into the DOS command line, into the directory C:\Program Files (x86) \java\jre6\lib\security,

2, Import command:

Keytool-import-keystore "C:\Program Files (x86) \java\jre6\lib\security\cacerts"-storepass Changeit

-keypass Changeit-alias Emailcert-file Test.cer
Owner: Cn=yu, Ou=chinaabc, O=CHINAABC, l=beijing, st=beijing, C=CN
Issuer: Cn=yu, OU=CHINAABC, O=CHINAABC, l=beijing, st=beijing, C=CN
Serial Number: 517754e3
Validity period: Wed APR 11:43:31 CST 2013 to Tue 11:43:31 CST 2013
Certificate fingerprint:
md5:26:e3:eb:82:5c:35:a5:d3:03:ef:10:fa:d0:f4:20:1f
Sha1:1f:ca:11:b7:52:91:cf:eb:e4:45:ff:48:1e:20:02:3b:fe:7c:29:ac
Signature Algorithm Name: Sha1withrsa
Version: 3
Trust this authentication. [No]: Y
Authentication has been added to the KeyStore

3, delete the command

Keytool-delete-alias Emailcert-keystore "C:\Program Files (x86) \java\jre6\lib\security\cacerts"

-storepass Changeit

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.