diff options
Diffstat (limited to 'test/tools/getcn')
-rwxr-xr-x | test/tools/getcn | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/tools/getcn b/test/tools/getcn new file mode 100755 index 00000000..d17ec0f6 --- /dev/null +++ b/test/tools/getcn @@ -0,0 +1,13 @@ +#!/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 + + |