H
H
heshhe2020-06-02 10:36:06
Python
heshhe, 2020-06-02 10:36:06

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

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())
print(cert.extensions[1])

V
Vadim, 2020-06-02
@Viji

Is there a console program for viewing certificates?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question