Last active
May 16, 2022 10:33
-
-
Save alces/b96f91c3cda13b22e076 to your computer and use it in GitHub Desktop.
Get an HTTPS certificates from a given URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| conn = new URL('https://www.example.com').openConnection() | |
| conn.connect() | |
| println conn.serverCertificates.collect { | |
| it.toString() | |
| }.join('\n') | |
| conn.disconnect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment