Created
June 2, 2016 21:51
-
-
Save niccokunzmann/db333891a4a764a27ef31cfc28896b59 to your computer and use it in GitHub Desktop.
retrieve the ssl certificate from inside of the university of potsdam https://niccokunzmann.github.io/blog/2016-06-02/Uni-Potsdam-Zensiert-Das-Internet#ssl
This file contains 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
import ssl | |
ssl.get_server_certificate(("google.tk", 443)) | |
'-----BEGIN CERTIFICATE-----\nMIIEgDCCA2igAwIBAgIINVXgoqz86GwwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UE\nBhMCVVMxEzARBgNVBAoTCkdvb2dsZSBJbmMxJTAjBgNVBAMTHEdvb2dsZSBJbnRl\ncm5ldCBBdXRob3JpdHkgRzIwHhcNMTYwNTI1MTQ0ODIzWhcNMTYwODE3MTQ0MjAw\nWjBoMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwN\nTW91bnRhaW4gVmlldzETMBEGA1UECgwKR29vZ2xlIEluYzEXMBUGA1UEAwwOd3d3\nLmdvb2dsZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCGrCmm\n/z9kB/Xp9MFUX8vFzs5vuFY/1bSE+ryHckI57dxgT4AztI8ArfezKge6cDvX3A6o\nl1bpnCbgYDq+ifny6+Z2esKPS1s04A7jkGsASwqOUqNELCcPG1BI7nnPJUguOGrg\nUgeMjLzYzBxvgGZ/o5wCQYx4c/7MJ+78ZT0/5R2TIhs2bXvWDsTJgl5PlNQDnxYO\nZaxY+p4Y7Q+GjT4DwWRwe6jwbnmK++jzEqVj4+wpuXMP+XI3l9zMUwq36PLqqevr\n2NHZndhnYzV5nhMkmYtI1p6AJSoAbN3xewX9pzV1OnBl54ZzFlxyxvgxLjkAhZcb\ndnxB4gJlsmqjvMCdAgMBAAGjggFLMIIBRzAdBgNVHSUEFjAUBggrBgEFBQcDAQYI\nKwYBBQUHAwIwGQYDVR0RBBIwEIIOd3d3Lmdvb2dsZS5jb20waAYIKwYBBQUHAQEE\nXDBaMCsGCCsGAQUFBzAChh9odHRwOi8vcGtpLmdvb2dsZS5jb20vR0lBRzIuY3J0\nMCsGCCsGAQUFBzABhh9odHRwOi8vY2xpZW50czEuZ29vZ2xlLmNvbS9vY3NwMB0G\nA1UdDgQWBBTkUFil3rovy2mjnygneFUKvEy51zAMBgNVHRMBAf8EAjAAMB8GA1Ud\nIwQYMBaAFErdBhYbvPZotXb1gba7Yhq6WoEvMCEGA1UdIAQaMBgwDAYKKwYBBAHW\neQIFATAIBgZngQwBAgIwMAYDVR0fBCkwJzAloCOgIYYfaHR0cDovL3BraS5nb29n\nbGUuY29tL0dJQUcyLmNybDANBgkqhkiG9w0BAQsFAAOCAQEALJPos9upOE2T4k1O\n0jy42fD9rK5TE9ebaK86mFjMOTGB/oId2cDBHm7H5P80Eq+qDGeLXz82t089rKVo\nGPSaWxrbJEjKlDwxZoQ9NvDqHndTYLcsY6BjGMGN36+AoXg5dHjDHmVwxV7SbDPi\nO1V9dCigkLPIBbnzdCJSztklDDdN5G83eRmZwWiuDfp3297YEZRc4ycTtujXgzJn\nF1CtJ5HZpYk/xJ3jaZTsC5lBMODvpdOdmOLL4TUT0GcAswBIo2EzPUmnx+e3/RJh\nf5VbgXGM/PjQML7z2D6RYf0SkasxMOdXLZ5ufAxb0ZfVA4pj+HKCLoDmYtQnZZxJ\nVON13Q==\n-----END CERTIFICATE-----\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment