-
Notifications
You must be signed in to change notification settings - Fork 94
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
trust pem file misparsed #205
Comments
I would say this is an expected behavior. The trust module recognizes the file format in the following order: the p11-kit persistent file format, DER, and PEM. So if it found the marker ( Re warning message: it was turned off by f992eb6. You can still see it when you set P11_KIT_DEBUG=all. We can certainly make |
ueno commented
Afaict this behavior does not match the documentation: Files in the following formats are supported for loading by the trust policy module:
|
I know. I meant that it could be only fixed by updating the documentation. |
After a second thought, it is actually possible to fall back to PEM blobs if the file is not parsable as p11-kit persistent format. I have updated the linked PR to cover this. |
Hello,
this is https://bugs.debian.org/914199 submitted by Sam Morris:
XXXXXXXX Quote
$ grep BEGIN /etc/ssl/certs/ca-certificates.crt | wc -l
154
That's from p11-kit 0.23.14-2. If I use the version from stable there is at
least a clue that something is amiss:
It turns out that, in-between the PEM-encoded certificates in
ca-certificates.crt, I have some lines:
These are in turn taken from the file that ipa-client-install dropped into
/usr/local/share/ca-certificates/ipa-ca.crt.
IMO p11-kit should treat these extra lines as comments since other tools
(openssl, gnutls) are perfectly happy to ignore them.
It would also be nice if it printed some more useful output to help users
debug issues such as these, and not exit with status 0 if problems are
detected. :)
XXXXXXXX End Quote
On Debian p11-kit is configured with
--with-trust-paths=/etc/ssl/certs/ca-certificates.crt
. Looking at the documentation for the trust module https://p11-glue.github.io/p11-glue/p11-kit/manual/trust-module.html afaict p11-kit should indeed interpret these as RFC 7468 PEM files, ignoring anything outside BEGIN/END markers.The text was updated successfully, but these errors were encountered: