Convert PEM to JSON
Turn PEM files into JSON. Every CERTIFICATE, CERTIFICATE REQUEST, X509 CRL and PKCS7 block is read in its order, and text around the blocks is skipped.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PEM files on the dialor turn it to pick what to do
Certificate details as plain JSON.Each certificate, request and list becomes an entry in one JSON array.
What you get
One JSON file with an array. Each certificate, certificate request and revocation list in the PEM file gets its own object, and the object says which kind it is.
An object holds the subject or issuer, the serial, the validity, the signature algorithm, the public key type and size, the alternative names and the extensions. It also holds the SHA-256 and SHA-1 fingerprints.
For a revocation list, the object gives every revoked serial with its date and reason.
Private keys
A file that holds a private key fails with
unsupported_elements. Keys are not taken here, and they are best converted on your own computer.Next steps
The output is one file. To join the result with other JSON files, you can merge JSON. For other targets, see every JSON conversion.
PEM and JSON.What each format is.
The formats
PEM Certificate
Certificates, certificate requests and revocation lists as base64 text between -----BEGIN and -----END lines, the form web servers and most tools read and write.
- Extensions
- .pem .crt .csr
- MIME type
- application
/x -pem -file - Kind
- Text and data
JSON
JSON, the data format of every API.
- Extensions
- .json
- MIME type
- application
/json - Kind
- Text and data
In your code.The same PEM to JSON conversion through the API, for your app or your agent.
$ cv convert report.pem report.json$ cv convert report.pem report.jsonQuestions.What people ask about PEM to JSON.
PEM files with the extensions pem, crt or csr. They can hold certificates, certificate requests and revocation lists as base64 text between BEGIN and END lines.
Yes. The JSON array holds one object for each certificate, request and list in the file.
The file holds a private key. The conversion stops with unsupported_elements when it finds one.
Yes. Each object has SHA-256 and SHA-1 fingerprints.