OpenSSL વડે HTTP પ્રોક્સી મારફતે વેબસાઇટનું પ્રમાણપત્ર તપાસો
HTTP CONNECT પ્રોક્સી મારફતે OpenSSL s_client વાપરો અને ગંતવ્ય નામ, SNI તથા પ્રમાણપત્ર ચકાસણી સુસંગત રાખો.
s_client સમર્થન કરતું સ્થાપિત OpenSSL -proxy વાપરો. અધિકૃત HTTP CONNECT endpoint માટે:
openssl s_client -proxy proxy.example:3128 -connect example.com:443 -servername example.com -verify_hostname example.com -verify_return_error -showcertsપ્રોક્સી સરનામું બદલો અને ઇચ્છિત ગંતવ્ય નામ સતત વાપરો. પસંદ કરી શકાય તેવી પ્રોક્સી મારફતે public destination ચકાસવા HTTP proxy listમાંથી HTTP candidate પસંદ કરો. -connect લક્ષ્ય પસંદ કરે છે, -servername તેના TLS virtual host માટે SNI મોકલે છે અને -verify_hostname ઓળખ ચકાસે છે. SNI એકલું hostname verification નથી. વિકલ્પો ગોઠવતી વખતે installed releaseનું manual તપાસો.
-showcerts serverએ મોકલેલું બતાવે છે, chain વિશ્વસનીય છે એવું જાહેર કરતું નથી. -verify_return_error verification errors પર handshake સમાપ્ત કરે છે; નહીં તો diagnostic client errors પછી પણ ચાલુ રહી શકે છે. Private service માટે approved CA material વાપરો, મનસ્વી રીતે download કરેલા certificate પર વિશ્વાસ ન કરો.
| પરિણામ | તબક્કો |
|---|---|
| 407 | Destination TLS પહેલાં proxy authentication. |
| નકારાયેલ CONNECT target | Proxy destination policy. |
| Certificate મળ્યું અને verificationનો પ્રયાસ થયો | Accepted tunnel મારફતે destination TLS exchange. |
OpenSSL 3.x અને Basic-authenticating HTTP proxy સાથે destination verification જાળવી s_client proxy-account options વાપરો.
માત્ર SOCKS endpoint આ command વાપરે છે તે HTTP proxy interface આપતું નથી. Authorized TLS interceptionમાં દેખાતું certificate તે intermediaryએ જારી કરેલું હોઈ શકે છે. ફરકને ખરાબ websiteને સોંપતા પહેલાં તેના issuer અને intended trust arrangement સરખાવો.