-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"TLS certificate verification failed: unable to get local issuer certificate" on OpenBSD #1234
Comments
|
profanity definitely know of "/etc/ssl" (plus it shows up in if I trace it it seems to look at that folder and then..not actually try to load anything inside it. |
|
I actually had the exact same problem with prosody on OpenBSD before. We ended up fixing by switching to but since this works with all these other programs it's...gotta be simpler than that, right? |
|
I think I've tracked it down. In your analogue of nbxmpp, libmesode, you call But see, OpenBSD ships with a CAfile and not a CApath. And I wonder if libressl has further tightened up the rules in their rewrite. The only reason this works for Gajim is that they brute force their way through every file in a given dir, trying to see if any of them look like certs. It works but they're not following OpenSSL's design. To fix this properly would mean exposing CAfile to the user, say in |
|
^ I tried my second suggestion and it worked peachy. |
|
There is an issue related to CA cert bundle file: #1212, however, not exactly your problem. If you confirm that |
Expected Behavior
Connecting to my server with good encryption should be smooth and transparent.
Current Behavior
On OpenBSD 6.6, profanity doesn't recognize my server certificate. Firefox and Chrome and curl and all the rest are fine using the same cert over https, and even Gajim is fine using the same cert over XMPP.
Steps to Reproduce (for bugs)
doas pkg_add profanityprofanity/connectContext
I'm trying to log onto my server smoothly. It's not a big deal to manually check and trust my cert, but it's one of those death-by-a-thousand-cuts that the BSDs suffer.
Environment
I'm using OpenBSD's fork of OpenSSL:
It's using OpenBSD's bundled libc, of course:
In profanity,
/tls certpathgives:Since using gajim works, I dug into what it's using. Its support library nbxmpp has this line:
https://github.com/gajim/python-nbxmpp/blob/dc337d8c124047863696057a757f6882cdade6fc/nbxmpp/tls.py#L366-L370
I confirmed that commenting out
"/etc/ssl"gives me a TLS warning; but that's not the actual file used, the actual file is "/etc/ssl/cert.pem". A few lines lower in nbxmpp you can see it brute-forcing its way to loading all the certs it can find.My guess is profanity isn't loading this same file, but is instead using "/etc/ssl/certs" as on Linux, or is maybe not recognizing that it needs to open that specific file?
(thanks for the software! it is really slick and efficient for me otherwise!)
The text was updated successfully, but these errors were encountered: