{"id":890,"date":"2023-07-07T14:19:09","date_gmt":"2023-07-07T14:19:09","guid":{"rendered":"https:\/\/www.linuxsystems.ovh\/?p=890"},"modified":"2023-08-31T19:11:31","modified_gmt":"2023-08-31T19:11:31","slug":"sprawdzenie-certyfikatu-ssl-w-pliku-jak-i-na-stronie-www","status":"publish","type":"post","link":"https:\/\/www.linuxsystems.ovh\/?p=890","title":{"rendered":"Sprawdzenie certyfikatu SSL w pliku jak i na stronie www"},"content":{"rendered":"\n<p>Za pomoc\u0105 polecenia openssl sprawdzimy certyikat SSL w pliku jak i na stronie www.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"has-medium-font-size\"><strong>Zaczniemy od certyfikatu na stronie, sprawdzimy to tak:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl s_client -connect nazwa_domeny.pl:443 -servername nazwa_domeny.pl<\/code><\/pre>\n\n\n\n<p>Przyk\u0142adowy output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ openssl s_client -connect linuxsystems.ovh:443 -servername linuxsystems.ovh\nCONNECTED(00000003)\ndepth=2 C = US, O = Google Trust Services LLC, CN = GTS Root R1\nverify return:1\ndepth=1 C = US, O = Google Trust Services LLC, CN = GTS CA 1P5\nverify return:1\ndepth=0 CN = linuxsystems.ovh\nverify return:1\n---\nCertificate chain\n 0 s:CN = linuxsystems.ovh\n   i:C = US, O = Google Trust Services LLC, CN = GTS CA 1P5\n   a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256\n   v:NotBefore: Jun 24 02:03:19 2023 GMT; NotAfter: Sep 22 02:03:18 2023 GMT\n 1 s:C = US, O = Google Trust Services LLC, CN = GTS CA 1P5\n   i:C = US, O = Google Trust Services LLC, CN = GTS Root R1\n   a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256\n   v:NotBefore: Aug 13 00:00:42 2020 GMT; NotAfter: Sep 30 00:00:42 2027 GMT\n 2 s:C = US, O = Google Trust Services LLC, CN = GTS Root R1\n   i:C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign Root CA\n   a:PKEY: rsaEncryption, 4096 (bit); sigalg: RSA-SHA256\n   v:NotBefore: Jun 19 00:00:42 2020 GMT; NotAfter: Jan 28 00:00:42 2028 GMT\n...ci\u0105g_dalszy_outputu...\n---\n<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Je\u017celi mamy plik np. plik cert.crt mo\u017cemy sprawdzi\u0107 certyfikat poleceniem:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl x509 -in cert.crt -text -noout <\/code><\/pre>\n\n\n\n<p>Przyk\u0142adowy output wygas\u0142ego ju\u017c&nbsp;certyfikatu wildcard dla linuxsystems.ovh wygenerowanego w letsencrypcie:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Certificate:\n    Data:\n        Version: 3 (0x2)\n        Serial Number:\n            03:9b:1d:d8:5e:58:8b:f7:e0:2f:b7:35:bf:2f:01:30:1a:5c\n    Signature Algorithm: sha256WithRSAEncryption\n        Issuer: C=US, O=Let's Encrypt, CN=Let's Encrypt Authority X3\n        Validity\n            Not Before: Jan 19 12:26:07 2020 GMT\n            Not After : Apr 18 12:26:07 2020 GMT\n        Subject: CN=linuxsystems.ovh\n...ci\u0105g_dalszy_outputu...\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Za pomoc\u0105 polecenia openssl sprawdzimy certyikat SSL w pliku jak i na stronie www.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-890","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts\/890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=890"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts\/890\/revisions"}],"predecessor-version":[{"id":897,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts\/890\/revisions\/897"}],"wp:attachment":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}