Method CreateTrustedDevelopmentCertificate
CreateTrustedDevelopmentCertificate(params string[])
Creates a self-signed certificate for the specified DNS names and adds them to the local user's certificate store.
public static X509Certificate2 CreateTrustedDevelopmentCertificate(params string[] dnsNames)
Parameters
dnsNames
string[]The certificate DNS names.