Score:1

How to use Certreq to generate CSR and install on Windows VM with no IIS Mgr?

in flag

I am running an Azure Windows VM. I used Certreq to create a CSR file using the following command:

certreq.exe -new request.inf nctest.csr

It all looks good. I have to pass the csr file off to a client who is then going to get the SSL from the domain registrar. I then need to get SSL up and running on the VM with the provided certificates.

It appears that I just need to run the command:

certreq -accept example.com.crt

And I'm good to go? I'm assuming I can use this as next steps: https://stackoverflow.com/a/25290387/139196

However, I'm also unsure where to get the SSL certificate password mentioned here:

$mypwd = ConvertTo-SecureString -String "SSLCertificate password" -Force –AsPlainText

Can I ignore and just not pass a password if none was provided as part of the creation using Certreq?

Score:1
cn flag

However, I'm also unsure where to get the SSL certificate password mentioned here:

you don't need the password. You already have installed the certificate so this and next script line (Import-PfxCertificate cmdlet call) must be omitted.

going avatar
in flag
Thanks. So, I'm guessing the "certreq -accept" command is doing something similar to what Import-PfxCertificate does.
cn flag
Similar in terms of result, yes.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.