Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (83)
EC Keys (2462)
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 (6622)
Revoked Certificates (16)
Root CA (85)
RSA Keys (5335)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
"keytool -certreq" Command Examples - Certificate Signing Request
How to use the "keytool -certreq" command? I have have created a new pair of public key and private key and want to send the public key to the certificate authority to sign it.
✍: FYIcenter.com
Here is an example of using "keytool -certreq" command to generate a Certificate Signing Request (CSR) for the public key stored in the default keystore file:
C:\Users\fyicenter> keytool -certreq -storepass FYIcenter -alias 2ndkey -file 2nd_cert_req.csr C:\Users\fyicenter>type 2nd_cert_req.csr -----BEGIN NEW CERTIFICATE REQUEST----- MIICUTCCAg8CAQAwHDEaMBgGA1UEAxMRamFyLmZ5aWNlbnRlci5jb20wggG4MIIBLAYHKoZIzjgE ATCCAR8CgYEA/X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow 9subVWzXgTuAHTRv8mZgt2uZUKWkn5/oBHsQIsJPu6nX/rfGG/g7V+fGqKYVDwT7g/bTxR7DAjVU E1oWkTL2dfOuK2HXKu/yIgMZndFIAccCFQCXYFCPFSMLzLKSuYKi64QL8Fgc9QKBgQD34aCF1ps9 3su8q1w2uFe5eZSvu/o66oL5V0wLPQeCZ1FZV4661FlP5nEHEIGAtEkWcSPoTCgWE7fPCTKMyKbh PBZ6i1R8jSjgo64eK7OmdZFuo38L+iE1YvH7YnoBJDvMpPG+qFGQiaiD3+Fa5Z8GkotmXoB7VSVk AUw7/s9JKgOBhQACgYEAjAAB3mnwz68kJTcwYKRXzEZIuYdOtdfmtSg3oORQptx7fyxyn3DqIrOM UjwrvT0/c54Pz3yL7fDx1bgZYVgKtuynCoqG5+YkEObukeFB3xYgcP4XnWmFuTkQA/nZJu7HZTEt 20TzER2keDO5NmLBiyEp8UzsJcD6cmhYeM3aXCWgMDAuBgkqhkiG9w0BCQ4xITAfMB0GA1UdDgQW BBRyXNJ31NA6uTOwG+74LYSHMlgr2zALBgcqhkjOOAQDBQADLwAwLAIUM8ShUKS7vw9pRhvVvTGe kX8SpTgCFCabY3yhdzysTZORqqcJpKWLY1kk -----END NEW CERTIFICATE REQUEST-----
What the "keytool -certreq" command shown above did for you:
Note that the CSR file was saved in PEM format (Base64 encoded binary file).
⇒ Java "keytool -printcertreq" Command Options
⇐ Java "keytool -certreq" Command Options
2012-07-20, 12432🔥, 0💬
Popular Posts:
Certificate summary - Owner: www.123-reg.co.uk, 123-reg Ltd, STREET=5 Roundwood Avenue, L=Uxbridge, ...
How to generate a new RSA key pair with a different public exponent using OpenSSL "genpkey" command?...
How to decode a CSR (Certificate Signing Request) and view its content? To help you to decode a CSR ...
Certificate summary - Owner: reg.hexun.com, Terms of use at www.verisign.com/rpa (c)05, System Opera...
You can modify the properties of a certificate for a number of reasons: Adding or modifying a displa...