openssl s_client using a proxy

前端 未结 5 637
予麋鹿
予麋鹿 2020-12-13 03:23
openssl s_client -connect some.https.server:443 -showcerts

is a nice command to run when you want to inspect the server\'s certificates and its cer

5条回答
  •  心在旅途
    2020-12-13 03:49

    since openssl v1.1.0

    C:\openssl>openssl version
    OpenSSL 1.1.0g  2 Nov 2017
    C:\openssl>openssl s_client -proxy 192.168.103.115:3128 -connect www.google.com -CAfile C:\TEMP\internalCA.crt
    CONNECTED(00000088)
    depth=2 DC = com, DC = xxxx, CN = xxxx CA interne
    verify return:1
    depth=1 C = FR, L = CROIX, CN = svproxysg1, emailAddress = xxxx@xxxx.xx
    verify return:1
    depth=0 C = US, ST = California, L = Mountain View, O = Google Inc, CN = www.google.com
    verify return:1
    ---
    Certificate chain
     0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com
       i:/C=xxxx/L=xxxx/CN=svproxysg1/emailAddress=xxxx@xxxx.xx
     1 s:/C=xxxx/L=xxxx/CN=svproxysg1/emailAddress=xxxx@xxxx.xx
       i:/DC=com/DC=xxxxx/CN=xxxxx CA interne
    ---
    Server certificate
    -----BEGIN CERTIFICATE-----
    MIIDkTCCAnmgAwIBAgIJAIv4/hQAAAAAMA0GCSqGSIb3DQEBCwUAMFIxCzAJBgNV
    BAYTAkZSMQ4wDAYDVQQHEwVDUk9JWDETMBEGA1UEAxMKc3Zwcm94eXNnMTEeMBwG
    

提交回复
热议问题