Bug 1151164 - NSS tools usability improvements
Summary: NSS tools usability improvements
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: nss
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: nss-nspr-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-09 16:49 UTC by Endi Sukma Dewata
Modified: 2017-08-24 15:49 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-08-08 11:48:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Endi Sukma Dewata 2014-10-09 16:49:19 UTC
It would be nice for NSS tools to support the following tasks to improve the usability:

1. Importing a specific certificate/private key from PKCS #12 file into NSS database. This will be useful if we do not want to use everything in the PKCS #12 file.

2. Generating a PEM file that contains a client certificate with the private key from NSS database. This can be used for client authentication on libraries that do not support NSS directly (e.g. python-requests).

3. Exporting a specific certificate/private key from NSS database into PKCS #12. This is an alternative for #2, but it will still require openssl tool to generate the PEM file. Currently the exported PKCS #12 file will include the CA certificate so it has to be removed from the PEM file in order to work with some libraries.

4. Renaming a certificate nickname in NSS database. This will be useful to clean up/organize the certificates.

Comment 1 Jaroslav Reznik 2015-03-03 16:21:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 2 Alicja Kario 2015-05-15 09:48:44 UTC
(In reply to Endi Sukma Dewata from comment #0)
> 3. Exporting a specific certificate/private key from NSS database into PKCS
> #12. This is an alternative for #2, but it will still require openssl tool
> to generate the PEM file. Currently the exported PKCS #12 file will include
> the CA certificate so it has to be removed from the PEM file in order to
> work with some libraries.

you mean the

  pk12util -o bundle.p12 -n certificate_nickname

is not sufficient for them? If you have to process the p12 file with openssl, then you can easily omit the ca certificates during conversion, just use the `-clcerts` option:

  openssl pkcs12 -in bundle.p12 -out certificate.pem -nodes -clcerts -passin pass:pkcs12-file-password

In general those are good suggestions, but NSS development happens primarily upstream, so you have a better chance of getting it fixed if you file an upstream bug. But please keep this bug open and link it to upstream bug for tracking purposes.

Comment 3 Fedora End Of Life 2016-07-19 19:31:10 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 Alicja Kario 2016-07-20 08:14:52 UTC
issue not resolved with nss-3.25.0-1.0.fc24.x86_64

Comment 5 Fedora Admin XMLRPC Client 2016-08-15 15:53:27 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Kai Engert (:kaie) (inactive account) 2017-07-11 13:40:47 UTC
there was no response to Hubert's comment, and nobody has requested this upstream.

Is this still in demand? Then please request upstream.

Comment 7 Kai Engert (:kaie) (inactive account) 2017-07-11 13:41:19 UTC
Please use more precise bug subject. Please one bug per enhancement request.

Comment 8 Fedora End Of Life 2017-07-25 18:43:18 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 9 Fedora End Of Life 2017-08-08 11:48:59 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 10 Endi Sukma Dewata 2017-08-22 06:41:49 UTC
Sorry for the delay. PKI now has a PKCS #12 utility that provides some of the desired functionalities: http://pki.fedoraproject.org/wiki/PKI_PKCS12_CLI

We can leave this ticket closed. Thanks.

Comment 11 Alicja Kario 2017-08-24 14:49:16 UTC
Are you aware of this corpus of key files?
https://github.com/redhat-qe-security/keyfile-corpus
Or have something similar for tests?

(setting needinfo to make sure you don't miss it)

Comment 12 Endi Sukma Dewata 2017-08-24 15:49:06 UTC
I don't think we currently have such tests in PKI. The above tool is written using JSS which is a Java interface for NSS, so I suppose those PKCS #12 variations would have been covered automatically, but I'll pass it along to our team for further investigation. Thanks!


Note You need to log in before you can comment on or make changes to this bug.