2012-02-27 02:21:05 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import sys
|
|
|
|
sys.path.insert(0, "../..")
|
|
|
|
import socket, tempfile, ssl, subprocess
|
|
|
|
|
|
|
|
addr = socket.gethostbyname(sys.argv[1])
|
2012-03-01 08:08:44 +00:00
|
|
|
print ssl.get_server_certificate((addr, 443))
|
2012-02-27 02:21:05 +00:00
|
|
|
|
|
|
|
|