메소드 | 설명 | |
---|---|---|
CreateSelfSignedCertificate ( int validForHours, string subscriptionId, string certificateNamePrefix, string issuer = DefaultIssuer, string password = DefaultPassword ) : |
Method to generate a self signed certificate
|
|
GetCertInBase64EncodedForm ( string certFileName ) : string |
Method to get the Certificate's base 64 encoded string
|
|
NewX509Certificate2 ( byte rawData, string password, X509KeyStorageFlags keyStorageFlags, bool shouldValidatePfx ) : |
Provides a similar API call to new X509Certificate(byte[],string,X509KeyStorageFlags)
|
|
SerializeCert ( |
Returns serialized certificate - Base64 encoded based on the content type
|
메소드 | 설명 | |
---|---|---|
Create2048RsaKey ( ) : System.Security.Cryptography.CngKey |
Windows Azure Service Management API requires 2048bit RSA keys. The private key needs to be exportable so we can save it for sharing with team members.
|
|
GenerateCertFriendlyName ( string subscriptionId, string prefix = "" ) : string |
Generates friendly name
|
public static CreateSelfSignedCertificate ( int validForHours, string subscriptionId, string certificateNamePrefix, string issuer = DefaultIssuer, string password = DefaultPassword ) : |
||
validForHours | int | number of hours for which the certificate is valid. |
subscriptionId | string | subscriptionId in question |
certificateNamePrefix | string | prefix for the certificate name |
issuer | string | issuer for the certificate |
password | string | certificate password |
리턴 |
public static GetCertInBase64EncodedForm ( string certFileName ) : string | ||
certFileName | string | Certificate File Name |
리턴 | string |
public static NewX509Certificate2 ( byte rawData, string password, X509KeyStorageFlags keyStorageFlags, bool shouldValidatePfx ) : |
||
rawData | byte | The bytes that represent the certificate |
password | string | The certificate private password |
keyStorageFlags | X509KeyStorageFlags | The certificate loading options |
shouldValidatePfx | bool | Flag to indicate if file should validated. Set to true if the rawData is retrieved from an untrusted source. |
리턴 |
public static SerializeCert ( |
||
cert | The certificate provided | |
contentType | X509ContentType | Cert content type |
리턴 | string |