ECDSA P 256
openssl pkcs8 -in xxx.key -topk8 -nocrypt -out xxx.key.pem
openssl x509 -in xxx.crt -out xxx.crt.pem
RSA
openssl rsa -in xxx.key -out xxx.key.pem
openssl x509 -in xxx.crt -out xxx.crt.pem
openssl pkcs8 -in xxx.key -topk8 -nocrypt -out xxx.key.pem
openssl x509 -in xxx.crt -out xxx.crt.pem
openssl rsa -in xxx.key -out xxx.key.pem
openssl x509 -in xxx.crt -out xxx.crt.pem