Answer the question
In order to leave comments, you need to log in
How to view ES certificate OIDs using Python?
There is a CEP certificate, you need to find out what kind of oids it contains.
If you look in the system, then on the "composition" tab there is a line "improved key", there is what I need - a list of oids.
There is a fsb795 package, but I did not find the necessary methods in it
Answer the question
In order to leave comments, you need to log in
import cryptography
from cryptography import x509
from cryptography.hazmat.backends import default_backend
cert = cryptography.x509.load_der_x509_certificate(fil, default_backend())
print(cert.extensions[1])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question