python - X509 certificates - maintaining certification path -


i'm working on x509 storage system python based program. certificates kept in postgressql database easy access. working ok, when each subject(user or ca authority) there 1 certificate. finding validation path easy, issuer field uniquely identify next certificate:

usercert1(ca_cert_class1) -> ca_cert_class1(ca_cert_root) -> ca_cert_root(ca_cert_root) 

the problems starts when certificates renewed due expiration or other reason. 2 or more certificates have same subject. in case there more 1 possible certification paths.

usercert1(ca_cert_class1) -> ca_cert_class1(ca_cert_root)(old)->....                           -> ca_cert_class1(ca_cert_root)(new)->.... 

trying each combination not solution. removing expired certificates not solution, need them validate old digital signatures.

question: how uniquely identify issuer cert within x509 certificate. guess, have x509v3 extensions. i'm not sure how use them.

there x509v3 extension this. it's aki (authority key identifier). number in child certificate should match ski (subject key identifier) in parent certificate.

see rfc5280 more details. ski can derived hash of public key, or generates unique number.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -