I am using openssl (on windows) to create a csr to go with a (test trial) Certificate. I have never done this before, and I have a question:
After creating the private key, you create a csr file and you’re asked to give personal information. One of the things it asks you is Common Name, which means domain name. I am presently only running off localhost. I am practicing how do create a https:// site.
Question: can I create a valid csr by doing something like localhost:82? If not, what should I do?
Simple answer: open your
hostsfile (C:\Windows\System32\drivers\etc\hosts) and come up with a fancy domain name:Then, tell your webserver to serve HTTPS requests to
example.com.