You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with open("/etc/certs/certificate.pem", "r") as public_key:
vk = VerifyingKey.from_pem(public_key.read())
with open("/etc/certs/pri_key.pem", "r") as p_key:
sk = SigningKey.from_pem(p_key.read(), hashlib.sha384)
d = b"message"
signature = sk.sign_deterministic(d, sigencode=sigencode_der)
getting error when try to open certificate.pem
The text was updated successfully, but these errors were encountered:
Steps
private key
openssl ecparam -name secp384r1 -genkey -out pri_key.pem
public key
openssl req -new -x509 -days 356 -key pri_key.pem -out certificate.pem -subj "/C=MX/ST=CDMX/L=MH/O=CDC/CN=CDC"
getting error when try to open
certificate.pem
The text was updated successfully, but these errors were encountered: