create-dotnet-devcert
create-dotnet-devcert copied to clipboard
certutil: could not find certificate named "dotnet-devcert": SEC_ERROR_INVALID_ARGS: security library: invalid arguments.
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?
I encountered the same issue but rerunning the command with sudo
fixed it.