3.4.2.2.2. Windows Power Shell command

The PowerShell command is as follows:

New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "testserver01" 
-FriendlyName "3dfindit-testserver-01" -NotAfter (Get-Date).AddYears(10)