RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1531622 - certutil: could not change trust on certificate: SEC_ERROR_TOKEN_NOT_LOGGED_IN
Summary: certutil: could not change trust on certificate: SEC_ERROR_TOKEN_NOT_LOGGED_IN
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pki-core
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Endi Sukma Dewata
QA Contact: Asha Akkiangady
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-05 16:35 UTC by Amol K
Modified: 2020-10-04 21:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-13 20:48:51 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Pagure dogtagpki issue 2888 0 None None None 2020-03-13 20:48:50 UTC
Github dogtagpki pki issues 3006 0 None open certutil: could not change trust on certificate: SEC_ERROR_TOKEN_NOT_LOGGED_IN 2021-02-03 19:34:01 UTC
Red Hat Bugzilla 1393668 0 low CLOSED certutil failed when importing certificate into HSM in FIPS mode 2023-08-06 07:33:45 UTC

Description Amol K 2018-01-05 16:35:55 UTC
Description of problem:
During pkispawn I'm able to see some new messages.

Version-Release number of selected component (if applicable):
10.5.1-5.el7

How reproducible:
Always

Steps to Reproduce:
1. pkispawn -s CA -f ca.cfg
2. pkispawn -s KRA -f kra.cfg
3.

Actual results:
Log file: /var/log/pki/pki-kra-spawn.20180105105230.log
Loading deployment configuration from kra.cfg.
Installing KRA into /var/lib/pki/RootKRA_hsm_akahat.
certutil: Could not find cert: NHSM6000-OCS:Server-Cert cert-RootKRA_hsm_akahat
: PR_FILE_NOT_FOUND_ERROR: File not found
Notice: Trust flag u is set automatically if the private key is present.
certutil: could not change trust on certificate: SEC_ERROR_TOKEN_NOT_LOGGED_IN: The operation failed because the PKCS#11 token is not logged in.

    ==========================================================================
                                INSTALLATION SUMMARY
    ==========================================================================

      Administrator's username:             kraadmin
      Administrator's PKCS #12 file:
            /opt/RootKRA_hsm_akahat/kraadmincert.p12

      This KRA subsystem of the 'RootKRA_hsm_akahat' instance
      has FIPS mode enabled on this operating system.

      REMINDER:  Don't forget to update the appropriate FIPS
                 algorithms in server.xml in the 'RootKRA_hsm_akahat' instance.

      To check the status of the subsystem:
            systemctl status pki-tomcatd

      To restart the subsystem:
            systemctl restart pki-tomcatd

      The URL for the subsystem is:
            https://csqa4-guest03.idm.lab.eng.rdu.redhat.com:21042/kra

      PKI instances will be enabled upon system boot

    ==========================================================================


Expected results:

Not able to see any error messages.

Additional info:

This issue is occured due to certutil.
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1393668

Comment 3 Matthew Harmsen 2018-01-18 19:38:57 UTC
Per PKI Team Meeting of 20180118 moving to RHEL 7.6.

Comment 4 Matthew Harmsen 2018-04-19 00:49:10 UTC
Per RHEL 7.5.z/7.6/8.0 Triage:  7.6

edewata: misleading error message

Comment 5 Matthew Harmsen 2018-07-03 23:57:08 UTC
Moved to RHEL 7.7.


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