I have a problem in the certificates on the IIS server, they disappear when I import it. And to solve this problem, find out a possible solution and in it comes the use of OpenSSL.
Follow these instructions:
1-
openssl genrsa -out key_name.key 2048
2-
openssl req -out CSR.csr -key key_name.key -new -sha256
When I refer to my certificate, it returns that it could not be loaded. (unable to load certificates)
openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer
Since the commands referenced above, according to the parameters of the files listed in the image.