PEM to CRT conversion

Hi. We are trying to find an example of converting PEM encoded certificate to CRT format using standard golang crypto package. Does standard golang crypto package support this conversion?

Yes, see https://golang.org/pkg/crypto/x509/#Certificate and https://golang.org/pkg/encoding/pem/

I am looking something similar

openssl x509 -inform der -in certificate.cer -out certificate.pem

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.