Encode trust chain text files to JSON or decode PEM certificates to trust chain text files
cargo run [encode | decode] /path/to/filecargo run encode ~/chain.txt
cargo run decode ~/cert.pemcargo run decode ~/cert.pem > ~/out-chain.txt
cargo run encode ~/out-chain.txt > cert.json
cat ~/cert.json