How to build a chain of trust with the New-SelfSignedCertificate PowerShell cmdlet?
New-SelfSignedCertificate