Beispiel #1
0
        /// <summary>
        /// Orders certificate.
        /// </summary>
        /// <param name="Domains">Domain names to include in certificate.</param>
        /// <param name="NotBefore">If provided, certificate is not valid before this point in time.</param>
        /// <param name="NotAfter">If provided, certificate is not valid after this point in time.</param>
        /// <returns>ACME order object.</returns>
        public Task <AcmeOrder> OrderCertificate(string[] Domains, DateTime?NotBefore, DateTime?NotAfter)
        {
            int i, c = Domains.Length;

            AcmeIdentifier[] Identifiers = new AcmeIdentifier[c];

            for (i = 0; i < c; i++)
            {
                Identifiers[i] = new AcmeIdentifier(this.Client, "dns", Domains[i]);
            }

            return(this.OrderCertificate(Identifiers, NotBefore, NotAfter));
        }
Beispiel #2
0
 /// <summary>
 /// Orders certificate.
 /// </summary>
 /// <param name="Identifier">Identifier to include in the certificate.</param>
 /// <param name="NotBefore">If provided, certificate is not valid before this point in time.</param>
 /// <param name="NotAfter">If provided, certificate is not valid after this point in time.</param>
 /// <returns>ACME order object.</returns>
 public Task <AcmeOrder> OrderCertificate(AcmeIdentifier Identifier,
                                          DateTime?NotBefore, DateTime?NotAfter)
 {
     return(this.OrderCertificate(new AcmeIdentifier[] { Identifier }, NotBefore, NotAfter));
 }