public Create ( string name, System.DateTime start, System.DateTime end, string userPassword, bool addtoStore = false ) : |
||
name | string | |
start | System.DateTime | |
end | System.DateTime | |
userPassword | string | |
addtoStore | bool | |
return |
private CertificateGenerator BuildCertGenerator(string name, string password) { var generator = new CertificateGenerator(SubscriptionId, ManagementCertificate); generator.Create(name, DateTime.UtcNow.Subtract(TimeSpan.FromDays(1)), DateTime.UtcNow.AddYears(2), password); return generator; }
/// <summary> /// Used to create the Cert /// </summary> public X509Certificate2 Create() { var generator = new CertificateGenerator(); return generator.Create(Name, ValidFrom, ValidTo, PvkPassword, true); }