[mbed-tls] Write private key into buffer using encrypted PEM format