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

            return(new CertificateAuthority(certs));
        }