H
H
heshhe2020-06-03 18:42:52
Python
heshhe, 2020-06-03 18:42:52

How to decrypt certificate in der encoding using python?

There is a certificate in der encoding. Using asn1crypto I get data in the following format:
PublicKeyInfo ** b'0f0\x1f\x06\x08*\x85..'
How to decrypt?
PY 3.7

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
heshhe, 2020-06-08
@heshhe

import cryptography
from cryptography import x509
from cryptography.hazmat.backends import default_backend
cert = cryptography.x509.load_der_x509_certificate(fil, default_backend())

G
galaxy, 2020-06-03
@galaxy

Try cryptography

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question