Overview
Create a Python script that checks the SSL/TLS configuration of a given host and port. This will provide quick insights into certificate and protocol security.
Requirements
-
Accept --host and --port as arguments.
-
Print details like certificate issuer, expiry date, and supported protocols.
-
Script must run standalone and via the central CLI.
Notes
-
Use Python’s built-in ssl and socket modules.
-
Handle errors gracefully (e.g., invalid host, closed port).
-
Keep output simple and structured.
Overview
Create a Python script that checks the SSL/TLS configuration of a given host and port. This will provide quick insights into certificate and protocol security.
Requirements
Accept
--hostand--portas arguments.Print details like certificate issuer, expiry date, and supported protocols.
Script must run standalone and via the central CLI.
Notes
Use Python’s built-in ssl and socket modules.
Handle errors gracefully (e.g., invalid host, closed port).
Keep output simple and structured.