My question is how to create a public key and private key with OpenSSL in windows and how to put the created public key in .crt
file and the private one in .pcks8
file in order to use this two keys to sign a SAML assertion in Java?
Thanks in advance.
.crt
file) contains a public key, but a public key in itself is not a certificate – Mathias R. Jesseni2d_RSAPrivateKey_bio
. An example of writing in all the formats is also given at How to generate RSA private key using OpenSSL? – jww