Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in creating cert from a csr file #9

Open
alawatugoda opened this issue Aug 1, 2020 · 2 comments
Open

Issue in creating cert from a csr file #9

alawatugoda opened this issue Aug 1, 2020 · 2 comments

Comments

@alawatugoda
Copy link

openssl('openssl ca -config intermediate/openssl.cnf -extensions usr_cert -days 375 -notext -md sha256 -in intermediate/csr/Pakaya.csr.pem -out intermediate/certs/Pakaya.cert.pem', function (err, buffer) {
console.log(err.toString(), buffer.toString());
});

When I run it, it asks the passphrase and then it does not complete the process unless I press CTRL+C. It only creates a zero byte file in the specified location.
When I run the terminal ideally it should ask for the passphrase and then confirmation to sign the certificate.

@nosovk
Copy link

nosovk commented Aug 20, 2020

you need to avoid console input to achieve your goal.
Try to pass passphrase to openssl using -passin option

@alawatugoda
Copy link
Author

Hello @nosovk
I have tried the following, but it does not work either.
openssl('openssl ca -config openssl.cnf -extensions usr_cert -days 375 -notext -md sha256 -in intermediate/csr/Chani.csr.pem -out certs/Chani.cert.pem -passin pass:Trusted5', function (err, buffer) {
console.log(err.toString(), buffer.toString());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants