mitmproxy/test/tools/getcn
2012-02-27 15:21:05 +13:00

14 lines
198 B
Python
Executable File

#!/usr/bin/env python
import sys
sys.path.insert(0, "../..")
from libmproxy import utils
cn, san = utils.get_remote_cn(sys.argv[1], 443)
print cn
if san:
for i in san:
print "\t", i