/// <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); } }
/// <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); } }