Certigo tool can dump certificat information to json format.
It should be nice if we have more fields in x509 according to this tool.
You can find an example of .json dumped by certigo :
dumped-json.txt
Some interesting fields are :
- is_self_signed (boolean)
- is_ca (boolean)
- pem
- dns_names (multiple)
- key_usage (multiple). E.g Digital Signature
- extended_key_usage (multiple). E.g Serveur auth
- ocsp_server
- issuing_certificate
Subject field and Issuer field are subdivided according to the RFC 5280 (page 20) like that :
- common_name
- country
- organization
- organizational unit
- distinguished name qualifier
- state or province name
- serial number
- locality
- title
- surname
- given name
- initials
- pseudonym
- generation qualifier
- key_id
Two solutions. The first one is to rename existing field to "subject-common-name", "subject-country", "issuer-common-name", "issuer-country", etc...
The second is to create an object "subject" and "issuer" with these attributs. I don't know what is the best :)
Certigo tool can dump certificat information to json format.
It should be nice if we have more fields in x509 according to this tool.
You can find an example of .json dumped by certigo :
dumped-json.txt
Some interesting fields are :
Subject field and Issuer field are subdivided according to the RFC 5280 (page 20) like that :
Two solutions. The first one is to rename existing field to "subject-common-name", "subject-country", "issuer-common-name", "issuer-country", etc...
The second is to create an object "subject" and "issuer" with these attributs. I don't know what is the best :)