Identity to pem file

Is there some way to convert a identity to a pem file, that generated by “dfx identity new ***”

You can find the pem file at /Users/t/.config/dfx/identity/default/identity.pem

1 Like

Thanks, but how to generate a pem file from private key and public key?