I want to check from a remote management server the expiration date of the server's TLs cert .
for many services (apache for example) I use
openssl s_client -showcerts -connect server.domain.fr:443
Although my openvpn server does run on 443 port , adding a pipe to above command ( | openssl x509 -dates -noout ) doesn't show me the notAfter expected date
Code: Select all
write:errno=0
unable to load certificate
140494133994816:error:0909006C:PEM routines:get_name:no start line:../crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE
Code: Select all
CONNECTED(00000003)
write:errno=0
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 310 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
thanks .