Skip to content

This Python script retrieves the expiration date of the SSL certificate for a given URL

Notifications You must be signed in to change notification settings

bizon-dot/ssl-expiration-date-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ssl-expiration-date-checker

This Python script retrieves the expiration date of the SSL certificate for a given URL

This Python script retrieves the expiration date of the SSL certificate for a given URL. It does this by creating a socket and connecting to the URL using the create_connection method from the socket module. It then wraps the socket in an SSL context using the wrap_socket method from the ssl module and retrieves the SSL certificate using the getpeercert method. Finally, it extracts the expiration date of the certificate from the notAfter field and prints it to the console.

About

This Python script retrieves the expiration date of the SSL certificate for a given URL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages