Skip to content

tls: add derCertToPemCert()

Rodrigo Muino Tomonari requested to merge github/fork/kaplanmaxe/dertopem into master

When calling getPeerCertificate(), the cert is returned as a raw DER buffer. I often need to convert these to PEM format. This was modeled after Python's ssl.der_cert_to_pem_cert.

If concept is approved, I will add documentation.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading