I am trying to replace an expired certificate for a new one, with 2 years of validation(with IIS GUI to create self signed certificates I got just 1 year), and using exchange management shell, with:
new-exchangecertificate -subjectname "<...>" -domainname <...> -generaterequest:$True -keysize 2048 -path <...> -privatekeyexportable:$True
and then, choose my CA. After that,
certreq.exe -submit -attrib "CertificateTemplate:WebServer" <...>
to set the certificate purpose.
But seems that after double check this cert that there is no private key.
So my question is, how can I add or generate a self signed cert with a private key incorporated to be able to import it to IIS.