Bug 88347 - Allow generation of hashed PEM certificate directory with --format=pem-hash-directory (different from 'trusted certificate' directory with --format=openssl-directory)
Summary: Allow generation of hashed PEM certificate directory with --format=pem-hash-d...
Status: RESOLVED FIXED
Alias: None
Product: p11-glue
Classification: Unclassified
Component: p11-kit (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: Stef Walter
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-13 00:20 UTC by Adam Williamson
Modified: 2016-12-19 08:28 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Adam Williamson 2015-01-13 00:20:09 UTC
There's been some work on this before, but it never got merged:

http://lists.freedesktop.org/archives/p11-glue/2013-December/000415.html
http://lists.freedesktop.org/archives/p11-glue/2014-January/000422.html

I'm hoping to do something more specific to get this implemented, but wanted to at least file the bug so we have a tracker.

'p11-kit extract' / 'trust extract' can generate a directory containing basic "BEGIN CERTIFICATE" PEM certificate files, or it can generate a directory containing OpenSSL 'trusted certificates' - "BEGIN TRUSTED CERTIFICATE" - along with symlinks in the style generated by the 'c_rehash' utility...but it can't generate a directory of basic "BEGIN CERTIFICATE" files with the hash symlinks.

This would be desirable, because a directory of 'BEGIN CERTIFICATE' certs with hash symlinks is one of Debian's canonical formats. Debian provides a /etc/ssl/certs directory in this style, which also contains a bundle file, /etc/ssl/certs/ca-certificates.crt . It's known that several apps expect /etc/ssl/certs to be a hashed directory of this type. p11-kit having this ability would help other distros provide a /etc/ssl/certs in the Debian style, for compatibility with things that expect it.

OpenSUSE wrote a patch to allow this - that's the first link above - but it used an environment variable hack which neither downstream nor upstream thought was the best option. Stef suggested implementing it as a separate --format parameter, and everyone apparently agreed that was the right approach, but no-one got around to doing it yet. The proposed parameter is "--format=pem-hash-directory".

Basically, what needs doing is refactoring the OpenSUSE patch a bit to implement the separate parameter, rather than conditionalizing the behaviour of "--format=pem-directory".
Comment 1 Stef Walter 2015-01-14 12:42:15 UTC
Merged patch to master. http://lists.freedesktop.org/archives/p11-glue/2015-January/000552.html


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.