How to build a certificates chain of trust using the `New-SelfSignedCertificate` PowerShell cmdlet?

Step 1

Create a temporary root authority (self-signed) certificate using the New-SelfSignedCertificate cmdlet.
Save the private key to the disk.


Step 2

Use the new certificate to issue another certificate that contains the public key.


Step 3

Import the root authority certificate into the Trusted Root Certification Authorities store.