Source: https://stackoverflow.com/questions/6863948/how-to-get-expiry-date-from-the-ssl-certificate-file-in-php
Array ( [name] => /CN=lunawebs.com [subject] => Array ( [CN] => lunawebs.com ) [hash] => 105ebe35 [issuer] => Array ( [C] => US [O] => Let's Encrypt [CN] => R11 ) [version] => 2 [serialNumber] => 605851900042876816977646567390466686912125 [serialNumberHex] => 06F4704F9D9B19AB4E2962134C4026C9067D [validFrom] => 250602051219Z [validTo] => 250831051218Z [validFrom_time_t] => 1748841139 [validTo_time_t] => 1756617138 [signatureTypeSN] => RSA-SHA256 [signatureTypeLN] => sha256WithRSAEncryption [signatureTypeNID] => 668 [purposes] => Array ( [1] => Array ( [0] => 1 [1] => [2] => sslclient ) [2] => Array ( [0] => 1 [1] => [2] => sslserver ) [3] => Array ( [0] => 1 [1] => [2] => nssslserver ) [4] => Array ( [0] => [1] => [2] => smimesign ) [5] => Array ( [0] => [1] => [2] => smimeencrypt ) [6] => Array ( [0] => [1] => [2] => crlsign ) [7] => Array ( [0] => 1 [1] => 1 [2] => any ) [8] => Array ( [0] => 1 [1] => [2] => ocsphelper ) [9] => Array ( [0] => [1] => [2] => timestampsign ) ) [extensions] => Array ( [keyUsage] => Digital Signature, Key Encipherment [extendedKeyUsage] => TLS Web Server Authentication, TLS Web Client Authentication [basicConstraints] => CA:FALSE [subjectKeyIdentifier] => 1E:38:60:38:FC:6C:53:93:3F:D6:3A:08:AA:63:6F:4A:05:23:A9:66 [authorityKeyIdentifier] => keyid:C5:CF:46:A4:EA:F4:C3:C0:7A:6C:95:C4:2D:B0:5E:92:2F:26:E3:B9 [authorityInfoAccess] => CA Issuers - URI:http://r11.i.lencr.org/ [subjectAltName] => DNS:lunawebs.com, DNS:lunawebs.lunasoft.com, DNS:www.lunawebs.com [certificatePolicies] => Policy: 2.23.140.1.2.1 [crlDistributionPoints] => Full Name: URI:http://r11.c.lencr.org/126.crl [ct_precert_scts] => Signed Certificate Timestamp: Version : v1(0) Log ID : A4:42:C5:06:49:60:61:54:8F:0F:D4:EA:9C:FB:7A:2D: 26:45:4D:87:A9:7F:2F:DF:45:59:F6:27:4F:3A:84:54 Timestamp : Jun 2 06:10:49.817 2025 GMT Extensions: none Signature : ecdsa-with-SHA256 30:45:02:20:66:5C:24:9C:42:F4:56:52:85:CB:3D:A4: 8F:FC:17:BE:20:F1:3D:7D:FA:0E:A3:73:44:0A:7D:DE: 49:64:79:56:02:21:00:97:57:18:D6:16:4E:FA:F2:C6: 83:04:BE:FE:B4:93:E2:24:21:00:C5:F0:02:C2:C6:85: 17:B7:2D:6C:0A:40:28 Signed Certificate Timestamp: Version : v1(0) Log ID : 0D:E1:F2:30:2B:D3:0D:C1:40:62:12:09:EA:55:2E:FC: 47:74:7C:B1:D7:E9:30:EF:0E:42:1E:B4:7E:4E:AA:34 Timestamp : Jun 2 06:10:49.817 2025 GMT Extensions: none Signature : ecdsa-with-SHA256 30:44:02:20:60:1F:F3:3B:02:DC:E5:78:59:9D:02:60: 9F:03:9F:CF:84:98:0D:46:71:C8:AD:76:24:54:8F:A3: 87:F4:86:43:02:20:5B:0C:1A:6A:A4:41:60:FD:6B:89: C5:27:7D:66:4F:52:9E:9F:29:C9:CF:80:C1:15:E3:55: C1:5A:47:B9:0E:8E ) )Valid From: Sun, 01 Jun 2025 23:12:19 -0600