Метод | Описание | |
---|---|---|
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 |