コード例 #1
0
        /// <summary>
        /// Find the most recently issued certificate for a specific target
        /// </summary>
        /// <param name="target"></param>
        /// <returns></returns>
        public CertificateInfo Certificate(IStorePlugin store)
        {
            var thumbprint    = Thumbprint;
            var useThumbprint = !string.IsNullOrEmpty(thumbprint);

            if (useThumbprint)
            {
                return(store.FindByThumbprint(thumbprint));
            }
            else
            {
                return(null);
            }
        }
コード例 #2
0
        /// <summary>
        /// Find the most recently issued certificate for a specific target
        /// </summary>
        /// <param name="target"></param>
        /// <returns></returns>
        public static CertificateInfo Certificate(this Renewal renewal, IStorePlugin store)
        {
            var thumbprint    = renewal.Thumbprint();
            var useThumbprint = !string.IsNullOrEmpty(thumbprint);

            if (useThumbprint)
            {
                return(store.FindByThumbprint(thumbprint));
            }
            else
            {
                return(null);
            }
        }