• Skip to main content

Uly.me

cloud engineer

  • Home
  • Archives
  • Search

expiration

SSL PEM Expiration

January 6, 2022 by Ulysses

Find out when SSL expires from a PEM file.

$ openssl x509 -enddate -noout -in your.cert
notAfter=Jan  5 07:08:14 2032 GMT

$ openssl x509 -enddate -noout -in your.cert notAfter=Jan 5 07:08:14 2032 GMT

notAfter date is returned.

Filed Under: Linux Tagged With: expiration, openssl, pem, ssl

Check Certificate Expiration

October 20, 2021 by Ulysses

Here’s the openssl command to find out if a cert is expired.

$ openssl s_client -connect yourdomain.com:443 -servername yourdomain.com 2> /dev/null | openssl x509 -noout -dates

$ openssl s_client -connect yourdomain.com:443 -servername yourdomain.com 2> /dev/null | openssl x509 -noout -dates

Result

notBefore=Apr  9 00:00:00 2020 GMT
notAfter=Apr  9 23:59:59 2022 GMT

notBefore=Apr 9 00:00:00 2020 GMT notAfter=Apr 9 23:59:59 2022 GMT

Filed Under: Linux Tagged With: certificate, expiration, openssl, ssl

AWS Display IAM Certificates

January 22, 2020 by Ulysses

SSL certificates were uploaded to IAM prior to Certificate Manager. Unfortunately, the certificates are not visible from the IAM console. There’s no way to view when a certificate is expiring. So, here’s how to display IAM certificates from the AWS CLI.

aws iam list-server-certificates

aws iam list-server-certificates

Filed Under: Cloud Tagged With: aws, certificates, expiration, iam, list-server-certificates

  • Home
  • About
  • Contact

Copyright © 2022