Hi,
I need to setup a simple https server with Letsencrypt certificates, but it always fails when I make a simple CURL validation.
This CURL validation cannot be bypassed (-k or other) since my customer will call this https server, and they require to comply with several rules including curl https validation.
I setup my simple https server with following steps:
- went to sslforfree and generated my ssl certificates, with manual option
- downloaded successfully the 3 certificate files com sslforfree (private.key + certificate.crt + ca_bundle.crt)
- created a simple node.js listener app on 443 port, that uses all 3 files (code below)
Now, if I test my node.js in chrome browser it returns a valid secure site, with correct html output. However, if I run the following simple curl command if always returns ācurl: (60) SSL certificate problem: unable to get local issuer certificateā error:
curl https://www.manueldias29.club
What is missing in my configuration? Are Letsencrypt CA authority not recognized by curl?
Based on other forum post, it seems some pem certificate files maybe missingā¦
If so, how can I generate them and how do I process them in my https listener?
Thanks!
mdias
My domain is: www.manueldias20.club
I ran this command: curl https://www.manueldias29.club
It produced this output: (60) SSL certificate problem: unable to get local issuer certificate
The operating system my web server runs on is (include version): Windows 10
My web server is (include version): simple node.js https listener
// node.js simple example used
var https = require(āhttpsā); var fs = require(āfsā);
var options = {
key: fs.readFileSync(āprivate.keyā),
cert: fs.readFileSync(ācertificate.crtā),
ca: fs.readFileSync(āca_bundle.crtā)
};
https.createServer(options, function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/html' });
res.write('Hello World!');
res.end();
}).listen(443);