How do i convert DER formated X.509 certificate to PEM form using MbedTLS? Actually the certificate which i'm recieving is in BASE64 encoded , while performing BASE64 decoding it gives DER formated certificate, but i require PEM format and want to covert the obtained DER format certificate to PEM using MbedTLS.