How can I Get the details from Root-CA-Cert certificate (x509) chain using c#? -
let's have 3 certificates (in base64 format)
root | --- ca | --- cert (client/signing/whatever)
how can data certificate chain in c#? (all 3 certs may in computer cert store)
how can details root-ca-cert certificate (x509) chain using c#?
how can data certificate chain in c#? ... how can details root-ca-cert certificate (x509) chain using c#?
you can use .net's x509certificate class. has methods getcerthash
, getpublickey
, getserialnumber
, geteffectivedatestring
(i.e., notbefore), getexpirationdatestring
(i.e., notafter
); , properties issuer
, subject
.
for purposes of displaying information, there no difference between root certificate, intermediate certificate or server certificate. ca self signed (some hand waiving), means issuer
, subject
same. can root trust in intermediate, , not self signed. intermediate , server certificates, issuer
, subject
different.
also, better visualization:
root or ca | --- intermediate | --- server (client/signing/whatever)
Comments
Post a Comment