New-SelfSignedCertificate
CautionSelf-signed certificates
New-SelfSignedCertificate -DnsName <fqdn> -CertStoreLocation Cert:\LocalMachine\My
Creates test/internal certs; inspect via the Cert: drive, export with Export-PfxCertificate. Not for public prod.
Examples
Get-ChildItem Cert:\LocalMachine\MyList machine certs
Syntax
New-SelfSignedCertificate -DnsName name [-NotAfter date] -CertStoreLocation Cert:\LocalMachine\My
Before you run it
Self-signed needs trust distribution.
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store