Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (967)
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 (3287)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2635)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
Save OpenSSL Command Output to File
How to save the output of an OpenSSL command into a file? I want to make a copy of the server certificate display in the "s_client -connect" command output.
✍: FYIcenter.com
If want to save the output an OpenSSL command into a file,
you need to run the entire OpenSSL command at the Windows command prompt with the Windows output
redirect ">" option as shown below:
C:\Users\fyicenter>\local\openssl\openssl.exe s_client \ -connect www.twitter.com:443 > twitter.pem depth=1 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert SHA2 Extended Validation Server CA verify error:num=20:unable to get local issuer certificate <Ctrl-C> read:errno=10093 C:\Users\fyicenter>type twitter.pem CONNECTED(0000017C) --- Certificate chain 0 s:/businessCategory=Private Organization/jurisdictionC=US/jurisdictionST=Delaware /serialNumber=4337446/street=Suite 900/street=1355 Market St/postalCode=94103 /C=US/ST=California/L=San Francisco/O=Twitter, Inc./OU=Twitter Security/CN=twitter.com i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA 1 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV Root CA --- Server certificate -----BEGIN CERTIFICATE----- MIIHnTCCBoWgAwIBAgIQB3a13cqDpLnKWY9ddx+eRjANBgkqhkiG9w0BAQsFADB1 MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 d3cuZGlnaWNlcnQuY29tMTQwMgYDVQQDEytEaWdpQ2VydCBTSEEyIEV4dGVuZGVk ...
What we did in this tutorial is:
⇒ OpenSSL "s_client -connect" - Show Server Certificate Chain
2021-11-19, 35279👍, 1💬
Popular Posts:
Certificate summary - Owner: COMODO Extended Validation Secure Server CA 2, COMODO CA Limited, L=Sal...
Certificate Summary: Subject: accounts.google.com Issuer: Google Internet Authority G2 Expiration: 2...
Certificate Summary: Subject: CLI-Login Issuer: CLI-Login Expiration: 2018-12-06 14:05:46 UTC Key Id...
Certificate summary - Owner: AOL Member CA, America Online Inc., L=Dulles, ST=Virginia, US Issuer: A...
How to get a list of all command options supported by "certmgr.exe"? You can see a list of all comma...