You can generate a self-signed certificate from Windows PowerShell. To perform this task, you must use the New-SelfSignedCertificate cmdlet.
For example, to generate a self-signed SSL server certificate for WebServer.Domain.Local, you can use the following command:
PS > New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname WebServer.Domain.Local
- DNSName parameter contains the FQDN
- CertStoreLocation parameter will add the self signed certificate to the local certificate store
More information: here
Thanks for reading! You can follow me on Twitter @PrigentNico