create-dotnet-devcert icon indicating copy to clipboard operation
create-dotnet-devcert copied to clipboard

certutil: could not find certificate named "dotnet-devcert": SEC_ERROR_INVALID_ARGS: security library: invalid arguments.

Open JwanKhalaf opened this issue 1 year ago • 1 comments

Hello

I'm not sure if some instructions are missing in the README, but when I run the script, I get:

~/code/create-dotnet-devcert/scripts main ❯ ./arch-create-dotnet-devcert.sh    
....+...+...+....+......+........+.........+...+....+++++++++++++++++++++++++++++++++++++++*.+..............+.+..+....+......+..+......+.........+......+.......+...+.....+....+........+...............+...+..........+..+.........+....+......+...+++++++++++++++++++++++++++++++++++++++*..+.....+......+...+......+....+..+......+...+......+....+.........+..+......+....+.....+...+...+...+.......+..+......+.+.....+..................+......+.........+...+.......+......+.....+.........+................+.........+...+..+.......+.....+...+............+..........+...............+......+.....+...+......+...+...+.......+...........+.........+.+.....+.+...+...........+.......+.....+.......+............+..............+......+.+..+.+..+.........+...+.......+...............+...+..+.+........+............+...+.+........+..........+..+......+...+....+..+.+.....+............+.+.........+...+..+......+....+...+...............+.....+....+.....+.+..+......+.+.........+...........+.+..+.+.........+.....+...+....+......+...+......+...+..+...+.+....................+......+.+.....+...+.......+........+....+............+.....+......+..........+...+..+...+.+........+.+.....+......+....+.....+.+...+.....+...+....+..............................+...+................................+.+..+.+...............+..+...+............+.......+..+.........+....+........+.......+..+....+.........+..................+..+.+.....+.......+..+.++++++
.......+..+.+.....+.........+...+.........+.+........+++++++++++++++++++++++++++++++++++++++*.....+++++++++++++++++++++++++++++++++++++++*.......+....+....................+.......+...............+......+...+...........+.........+.......+...+.....+.+......+..............+.........+....+......+..+......................+...+...+...........+...+......+.........+.+..+....+......+.....+....+.........+..+.........+....+.........+........+...+...............+....+...+..+............+.+........+.+......+..+...+....+......+..............+...+...+.......+.......................+.......+.....+.+.................+....+...+..+.............+..................+...+..............+...+...+.......+..+.+...........+...+...............+.+..+....+...........+.........+.+.....+..........+..++++++
-----
Configuring nssdb for /home/j/.pki/nssdb
certutil: could not find certificate named "dotnet-devcert": SEC_ERROR_INVALID_ARGS: security library: invalid arguments.
HTTPS development certificates successfully removed from the machine.
The certificate was successfully imported.

At the bottom it says the cert was successfully imported, but two lines before that, it says there was a certutil error.

Is this normal? Should I just ignore that error?

image

JwanKhalaf avatar Dec 03 '23 12:12 JwanKhalaf

I encountered the same issue but rerunning the command with sudo fixed it.

BoyanYK avatar Feb 23 '24 10:02 BoyanYK