blob: 976a15769728902a1f23eb02e6b33ed0b27a3440 [file] [log] [blame]
Ricardo Cerqueira0a656b62013-10-01 20:42:45 +01001#!/usr/bin/env python
2
3from __future__ import print_function
4
5import base64
6import sys
7
8pkFile = open(sys.argv[1], 'rb').readlines()
9base64Key = ""
10inCert = False
11for line in pkFile:
12 if line.startswith(b"-"):
13 inCert = not inCert
14 continue
15
16 base64Key += line.strip()
17
18print(base64.b16encode(base64.b64decode(base64Key)).lower())