1 year ago
#387307
Ashiq Dey
How to get ca-bundle from openssl
I have generated the SSL using openssl using the following commands. Which have generated the cert and key file but where do I get the ca-bundle file. I need the ca-bundle file to include in nodejs application else it is showing not secure warning.
openssl genrsa -out server-key.pem 1024
openssl req -new -key server-key.pem -out server-csr.pem
openssl x509 -req -in server-csr.pem -signkey server-key.pem -out server-cert.pem
my server's code
const options = {
key: fs.readFileSync("path-to-key"),
cert: fs.readFileSync("path-to-crt"),
ca: [fs.readFileSync("path-to-ca-bundle"), fs.readFileSync("path-to-crt")],
requestCert: false,
rejectUnauthorized: false
}
const server = https.createServer(options, app);
node.js
ssl
amazon-ec2
openssl
0 Answers
Your Answer