public static async Task <CertificateAuthority> CreateAsync(string deviceId, RootCaKeys rootCa, string scriptPath, CancellationToken token) { (string rootCertificate, string rootPrivateKey, string rootPassword) = rootCa; await OsPlatform.Current.InstallRootCertificateAsync(rootCertificate, rootPrivateKey, rootPassword, scriptPath, token); EdgeCertificates certs = await OsPlatform.Current.GenerateEdgeCertificatesAsync(deviceId, scriptPath, token); return(new CertificateAuthority(certs, scriptPath)); }
CertificateAuthority(EdgeCertificates certs, string scriptPath) { this.Certificates = certs; this.scriptPath = scriptPath; }
CertificateAuthority(EdgeCertificates certs) { this.Certificates = certs; this.scriptPath = Option.None <string>(); }
CertificateAuthority(EdgeCertificates certs, string scriptPath) { this.Certificates = certs; this.scriptPath = Option.Maybe(scriptPath); }
public static CertificateAuthority GetQuickstart() { EdgeCertificates certs = OsPlatform.Current.GetEdgeQuickstartCertificates(); return(new CertificateAuthority(certs)); }