共用方式為


CertUtils.CreateSelfSignedCertificate Method

Definition

public static System.Security.Cryptography.X509Certificates.X509Certificate2 CreateSelfSignedCertificate (int validForHours, string subscriptionId, string certificateNamePrefix, string issuer = "CN=Windows Azure Tools", string password = "");
static member CreateSelfSignedCertificate : int * string * string * string * string -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Shared Function CreateSelfSignedCertificate (validForHours As Integer, subscriptionId As String, certificateNamePrefix As String, Optional issuer As String = "CN=Windows Azure Tools", Optional password As String = "") As X509Certificate2

Parameters

validForHours
Int32
subscriptionId
String
certificateNamePrefix
String
issuer
String
password
String

Returns

Applies to