Hello all. Anyone have a case where your connectio...
# lucee
m
Hello all. Anyone have a case where your connection to a mongo db at mongodb.com suddently stops working and throws an error as follows: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}}]
s
usually means their SSL cert has an intermediary cert that your local lucee install doesn't trust and needs added
the web site at mongodb.com is using an Amazon cert though, seems surprising your jdk wouldn't trust that one out of the box
m
According to mongodb.com their docs say it's a LETSENCRYPT cert and I checked and it's installed
s
those certs swap out every 2-3 months - if you're dynamically installing it at runtime that's one thing, but if it was installed through 'upload this cert in lucee admin' you might have installed an old one
m
Oh interesting... I wonder how to make sure it's the newest one. Unfortunately they use the +srv connection so you can't just go to the domain in the browser and grab it.
Thanks, that was it!