Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (83)
EC Keys (2415)
Firefox (30)
General (10)
Google Chrome (25)
Intermediate CA (152)
Java VM (29)
JDK Keytool (28)
Microsoft CertUtil (29)
Microsoft Edge (9)
Mozilla CertUtil (21)
OpenSSL (236)
Other (7)
Portecle (38)
Publishers (6559)
Revoked Certificates (16)
Root CA (85)
RSA Keys (5293)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
"keytool -exportcert" Command Examples - Exporting Certificate
How to use the "keytool -exportcert" command? I want to export a certificate out of a keystore file and send it to someone else.
✍: FYIcenter.com
Here is an example of using "keytool -exportcert" command to export the self-signed certificate in the "2ndkey" entry from the default keystore file:
C:\Users\fyicenter> keytool -exportcert -storepass FYIcenter -alias 2ndkey -rfc -----BEGIN CERTIFICATE----- MIICljCCAlOgAwIBAgIEDjB/czALBgcqhkjOOAQDBQAwHDEaMBgGA1UEAxMRamFyLmZ5aWNlbnRl ci5jb20wHhcNMTIwNzE0MTQ1NzUwWhcNMTIxMDEyMTQ1NzUwWjAcMRowGAYDVQQDExFqYXIuZnlp Y2VudGVyLmNvbTCCAbgwggEsBgcqhkjOOAQBMIIBHwKBgQD9f1OBHXUSKVLfSpwu7OTn9hG3Ujzv RADDHj+AtlEmaUVdQCJR+1k9jVj6v8X1ujD2y5tVbNeBO4AdNG/yZmC3a5lQpaSfn+gEexAiwk+7 qdf+t8Yb+DtX58aophUPBPuD9tPFHsMCNVQTWhaRMvZ1864rYdcq7/IiAxmd0UgBxwIVAJdgUI8V IwvMspK5gqLrhAvwWBz1AoGBAPfhoIXWmz3ey7yrXDa4V7l5lK+7+jrqgvlXTAs9B4JnUVlXjrrU WU/mcQcQgYC0SRZxI+hMKBYTt88JMozIpuE8FnqLVHyNKOCjrh4rs6Z1kW6jfwv6ITVi8ftiegEk O8yk8b6oUZCJqIPf4VrlnwaSi2ZegHtVJWQBTDv+z0kqA4GFAAKBgQCMAAHeafDPryQlNzBgpFfM Rki5h0611+a1KDeg5FCm3Ht/LHKfcOois4xSPCu9PT9zng/PfIvt8PHVuBlhWAq27KcKiobn5iQQ 5u6R4UHfFiBw/hedaYW5ORAD+dkm7sdlMS3bRPMRHaR4M7k2YsGLISnxTOwlwPpyaFh4zdpcJaMh MB8wHQYDVR0OBBYEFHJc0nfU0Dq5M7Ab7vgthIcyWCvbMAsGByqGSM44BAMFAAMwADAtAhROGKfr 4tXO7Jy8edfL1jAkTCk/EgIVAJPZEZ1H/0wbeHA74zPfK8I+w9ab -----END CERTIFICATE-----
What this command did for you:
If you want to save the certificate in a file, you can use the "-file" option:
C:\Users\fyicenter> keytool -exportcert -storepass FYIcenter -alias 2ndkey -rfc -file 2nd_cert.pem Certificate stored in file <2nd_cert.pem>
⇒ Java "keytool -list" Command Options
⇐ Java "keytool -exportcert" Command Options
2012-07-19, 29891👍, 0💬
Popular Posts:
Certificate Summary: Subject: GlobalSign ECC OV SSL CA 2018 Issuer: GlobalSign Expiration: 2028-11-2...
How to view the ASN.1 structure of an RSA private key using the OpenSSL "asn1parse" command? You can...
Why I am getting the "wrong signature length" error when running the OpenSSL "req -verify" command? ...
What are X509 V3 extensions options in the configuration file for the OpenSSL "req" command? X509 V3...
Can you show me an example of X.509 certificate data structure? Here is an example of X.509 Version ...