Skip to content

Instantly share code, notes, and snippets.

@weskerfoot
Created March 16, 2021 14:00
Show Gist options
  • Save weskerfoot/24c15ec1369797a2d70d03e77ab5f6cc to your computer and use it in GitHub Desktop.
Save weskerfoot/24c15ec1369797a2d70d03e77ab5f6cc to your computer and use it in GitHub Desktop.
#! /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