openssl x509 -outform der -in certificate.pem -out certificate.der
-----BEGIN CERTIFICATE----- MIIH0jCCBrqgAwIBAgIQUB2BxUjiAa6gVV4cTCv6lDANBgkqhkiG9w0BAQsFADBH MQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEgMB4GA1UEAxMX R2VvVHJ1c3QgRVYgU1NMIENBIC0gRzQwHhcNMTcwMzMwMDAwMDAwWhcNMTkwMzMw MjM1OTU5WjCB0jETMBEGCysGAQQBgjc8AgEDEwJVQTEdMBsGA1UEDxMUUHJpdmF0 ZSBPcmdhbml6YXRpb24xETAPBgNVBAUTCDMyNTE3NDk2MQswCQYDVQQGEwJVQTEZ MBcGA1UECAwQS2htZWxueXRza2Egb2JsLjEaMBgGA1UEBwwRTWlzdG8gS2htZWxu eXRza3kxFjAUBgNVBAoMDWFkZ3JhZmljcyBsdGQxETAPBgNVBAsMCFdlYlRydXN0 MRowGAYDVQQDDBF3d3cuYWRncmFmaWNzLm5ldDCCASIwDQYJKoZIhvcNAQEBBQAD ggEPADCCAQoCggEBAKGefjtEQniMGUEOj9agSgtMcsMKMxcJHjXLXvecxqA1H+br qrYqLiSp5zbeqXMjQcpMxmhlvT38RR1RMOmBvgFgAqCKdffVku17vvHxBVz8ejpb KnSM2SIeY2Te76wbZ6wmdBi5Qc4+NXYyr/Hw8/g+gWdGQtPDKV9oqU0MTgSmJOg+ ZYAlcJ4m88XZR+kvBC2ZzBP8dsHCzHZZxqdRlMGkMCS7obEhbTmJvpxJCASNUlsp HXo/thYpUBCiXH9LvqlhqBKslMfftttwTShLJDZygLhR6B8/BRCTH97S1Z1MiG+n C9S/AP+YZx06k1M1cBld0ipH00rUnN8qjKJD1rUCAwEAAaOCBCwwggQoMIIBFAYD VR0RBIIBCzCCAQeCCnBkZi5jb20udWGCDHNtaW1lLmNvbS51YYIMZHZzc2wuY29t LnVhggxldnNzbC5jb20udWGCDG92c3NsLmNvbS51YYIPcHJvdmVya2Fzc2wuY29t gg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