When this command is run in the demoCA folder, and it is looking for newcerts folder, it should just search for newcerts
, but is instead searching for ./demoCA/newcerts
, even though it is already in the newcerts folder! I don't know why...
To fix this, I moved up a folder (out of the demoCA folder, and into whatever folder is holding your demoCA folder), then changed the command so that all the files have ./demoCA in front of them:
openssl ca -in ./demoCA/server.csr -out ./demoCA/server.crt -cert ./demoCA/ca.crt -keyfile ./demoCA/ca.key -config ./demoCA/openssl.cnf
Then it finally worked for me!!
(A better way to fix the issue would be to figure out why it is searching for ./demoCA/newcerts
instead of simply newcerts, but I couldn't figure it out.)