Created
March 16, 2021 14:00
-
-
Save weskerfoot/24c15ec1369797a2d70d03e77ab5f6cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#! /usr/bin/env python3 | |
from ecdsa import VerifyingKey | |
from binascii import hexlify | |
from sys import argv, stdout | |
with open(argv[1], "rb") as cert: | |
cert_contents = cert.read() | |
stdout.write(hexlify(VerifyingKey.from_pem(cert_contents).to_string(encoding="uncompressed")).decode("ascii") + "\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment