示例#1
0
        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));
        }
示例#2
0
 CertificateAuthority(EdgeCertificates certs, string scriptPath)
 {
     this.Certificates = certs;
     this.scriptPath   = scriptPath;
 }
示例#3
0
 CertificateAuthority(EdgeCertificates certs)
 {
     this.Certificates = certs;
     this.scriptPath   = Option.None <string>();
 }
示例#4
0
 CertificateAuthority(EdgeCertificates certs, string scriptPath)
 {
     this.Certificates = certs;
     this.scriptPath   = Option.Maybe(scriptPath);
 }
示例#5
0
        public static CertificateAuthority GetQuickstart()
        {
            EdgeCertificates certs = OsPlatform.Current.GetEdgeQuickstartCertificates();

            return(new CertificateAuthority(certs));
        }