Collections:
Other Resources:
Java "keytool -importcert" Command Options
What options are supported by the "keytool -importcert" command?
✍: FYIcenter.com
Java Keytool can be used to save the certificate received from others into a keystore file
using the "keytool -importcert" command, which supports the following options:
C:\Users\fyicenter> keytool -importcert -help keytool -importcert [OPTION]... Imports a certificate or a certificate chain Options: -noprompt do not prompt -trustcacerts trust certificates from cacerts -protected password through protected mechanism -alias <alias> alias name of the entry to process -file <filename> input file name -keypass <arg> key password -keystore <keystore> keystore name -storepass <arg> keystore password -storetype <storetype> keystore type -providername <providername> provider name -providerclass <providerclass> provider class name -providerarg <arg> provider argument -providerpath <pathlist> provider classpath -v verbose output Use "keytool -help" for all available commands
The "keytool -importcert" command reads the certificate or certificate chain (where the latter is supplied in a PKCS#7 formatted reply or a sequence of X.509 certificates) from the file cert_file, and stores it in the keystore entry identified by alias. If no file is given, the certificate or certificate chain is read from stdin.
keytool can import X.509 v1, v2, and v3 certificates, and PKCS#7 formatted certificate chains consisting of certificates of that type. The data to be imported must be provided either in binary encoding format, or in printable encoding format (also known as Base64 encoding) as defined by the Internet RFC 1421 standard. In the latter case, the encoding must be bounded at the beginning by a string that starts with "-----BEGIN", and bounded at the end by a string that starts with "-----END".
You import a certificate for two reasons:
⇒ "keytool -importcert" Command Examples - Save Certificate to Keystore
⇐ Split Certificate Chain File
2012-07-20, ≈19🔥, 0💬
Popular Posts:
Detailed information of '-----BEGIN CERTIFICATE----- MIIE': RSA 2048-Bit Private Key - c7290b7f11d9f...
What is the default behavior of the "certutil -store" command? The default behavior of the "certutil...
Certificate Summary: Subject: Amazon Issuer: Amazon Root CA 1 Expiration: 2025-10-19 00:00:00 UTC Ke...
How to delete a certificate from a certificate store using "certmgr.msc"? The certificate has been e...
Certificate summary - Owner: Dell Inc. Enterprise CA, Dell Inc. Issuer: GTE CyberTrust Global Root, ...