Closed Bug 1683089 Opened 5 years ago Closed 5 years ago

certutil tool keeps asking for password even after giving correct password

Categories

(NSS :: Tools, defect, P4)

3.58

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: sunny4saurabh, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

Steps to reproduce:

./certutil -N -d .

after running the above command, password is set

./certutil -A -n Dendell012-Root -t "C,C,C" -i <xx.cer> -d .

after running the above command , it ask for password, and after providing the correct password which was set in first step, it keeps on asking password, like below

Enter Password or Pin for "NSS Certificate DB":
Enter Password or Pin for "NSS Certificate DB":

Assignee: kwilson → nobody
Component: CA Certificate Root Program → Tools
QA Contact: kwilson
Severity: -- → S1
Priority: -- → P1
Severity: S1 → N/A
Priority: P1 → --

Can someone help

Is this a new problem with NSS 3.58, or are you aware of any version where this works as expected?

Flags: needinfo?(sunny4saurabh)

earlier it was working fine when I built NSS 3.41 on AIX

Flags: needinfo?(sunny4saurabh)

please see if you can help..I am stuck on this completely

Does it work if you initialize the database with the password that you want (instead of changing the password after initialization)?

That is, certutil -N -d . -f <password_file>

If not, please provide the command that you're using to change the password.

what is the password file ?

when I run certutil -N -d . it will as for new password to set and create cert9.db and key4.db files

It's just a plaintext file containing the same password (for creating a database in non-interactive mode). See here: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/tools/NSS_Tools_certutil

when i run using password file, it doesnt ask to enter password, but again when i insert the certificates it keeps on asking when i run the below command

./certutil -A -n Dendell012-Root -t "C,C,C" -i <.cer file> -d .

I'm not sure what to make of this. The behavior you describe is expected when the password is incorrect, but this sequence of steps works correctly for me on 3.41 and 3.60. These commands also run in CI on every push.

You'll probably need to narrow this down some more (to a specific version, OS, etc.), as it seems to be related to your environment somehow.

Severity: N/A → S3
Priority: -- → P4

I am running on AIX, and I have only built the libraries nss.

when the password is incorrect, it should throw invalid password error, but instead it keeps on asking password and also inserts the certificates into cer9.db file which should not happen when the password is incorrect

Hi, can anyone have a check on this. we are stuck because of this

Severity: S3 → S1
Priority: P4 → P1

Please stop messing with this bug's metadata.

Severity: S1 → S4
Priority: P1 → P3
Severity: S4 → S3
Priority: P3 → P4

Sure, But I need somehelp on this, Unable to proceed because of this issue. This Bug is still in open status from long time

Nobody else has reported this issue, it's not reproducible on other platforms, and few have AIX platforms to test on (I certainly don't).

I've asked for a specific version where the behavior changes, but you haven't provided it. This sounds like a good opportunity for you to debug the issue and provide more detail in an actionable bug report.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.