This file contains 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
""" | |
Here's how to create an x509 public key certificate | |
for your private key hosted on Google HSM in python. | |
Assumes 2048-bit RSA with PKCS#1 v1.5 Padding | |
""" | |
from google.cloud import kms | |
from asn1crypto import x509 |