Пример #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));
        }