Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Certificate issues if more than one certificate with similar names.
-
when trying to set ssl i am using a certificate with a subject of "Server1" but because I enabled IIS remote admin a new certificate was created of "WMSvc-SHA1-Server1" and that one is being found when starting.
-
Hi @rob ,
When using the the subject name, the
X509NameType.SimpleNameis extracted and compared. Here's the specific logic:x509Store.Certificates.Where(c => c.GetNameInfo(X509NameType.SimpleName, false).Equals(config.Subject, StringComparison.OrdinalIgnoreCase)).OrderByDescending(c => c.NotAfter).FirstOrDefault()So if the "wrong"
Server1is being selected, I'm guessing it shares the same simple name.In scenarios like this, we recommend renaming the certificate (e.g.
ProGetSsl), using a file, or the thumbprint.Thanks,
Alana
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login