Keytool Error: Java.io.FileNotFoundException:

Source: Internet
Author: User
Keytool Error: Java.io.FileNotFoundException:
To import a certificate into the Java Cacerts Certificate library:
The first step: IE open the Web site, to import the Java Certificate Library certificate download
??????? View the certificate on the Web Page Security Alert pop-up window-details-Copy to File
??????? A Certificate Export Wizard dialog box pops up and prompts you to proceed to the next step until you finish.
??????? I keep the certificate in C, the name is Next_certkey.cer or Xxxx.der.
Step Two: Import the certificate exported above into the Cacerts certificate library in Java
??????? Windows? cmd into C:\Program files\java\jdk1.5.0_06\jre\lib\security directory
Mac OS terminal enters/system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/lib/security
Typing the following command carriage return execution
??????? sudo keytool-import-alias cacerts-keystore cacerts-file C:\NEXT_CertKey.cer-trustcacerts
??????? At this point, the command line prompts you to enter the Cacerts Certificate library password.
??????? The default password for the Cacerts certificate Library in Java is Changeit.
??????? Y confirm, OK, certification has been added to KeyStore.

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.