summaryrefslogtreecommitdiffstats
path: root/base/server/python/pki/server/cli/ocsp.py
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2016-03-03 14:36:52 -0500
committerEndi S. Dewata <edewata@redhat.com>2016-04-02 07:36:51 +0200
commitd6ddbf86de31c4096ce816f9726e15e46f387f0f (patch)
tree828c8bebbb356c9cbfdfd1a8d52d2bf0b8ff804b /base/server/python/pki/server/cli/ocsp.py
parent574eb27a2db7be57e7e887f3a790cb6370044e5f (diff)
downloadpki-d6ddbf86de31c4096ce816f9726e15e46f387f0f.tar.gz
pki-d6ddbf86de31c4096ce816f9726e15e46f387f0f.tar.xz
pki-d6ddbf86de31c4096ce816f9726e15e46f387f0f.zip
Fix pkcs12 export
The utility for exporting certs and keys to a PKCS12 file did not handle the signing certificate correctly. This is because the signing certificate was imported multiple times during the export process - either with its key (and key id set) or as part of the cert chain for the other system certs (with no key set). Each import would override the previous import - so whether or not the key_id was set would depend on the order in which the certificates were imported. This becomes an issue for import into a clone certdb, because in the new mechanism, we rely on the cert attributes (ie. key_id) to determine if a key is to be imported or not. We fix this by specifying whether the entry in the export should be overwritten or not.
Diffstat (limited to 'base/server/python/pki/server/cli/ocsp.py')
0 files changed, 0 insertions, 0 deletions