Web3S_Demo > Web 3S Crypto Function Library > Convert Private Key (PEM -> DER)

Convert Private Key (PEM -> DER)

Converts a PEM-encoded private key into a DER-encoded private key.

Inputs

In
Exec

Private Key (P EM)
Array of Bytes

PEM-encoded private key data

Password
String

password for encrypting a pass-phrase encrypted PEM key. For unencrypted keys leave empty.

Outputs

Out
Exec

Error Message
String

if failed, error message

Private Key (D ER)
Array of Bytes

if successful, raw, DER-encoded private key data

Success
Boolean

True if conversion was successful, false otherwise