Answer the question
In order to leave comments, you need to log in
Site under NodeJS, how to properly attach certificates from WoSign so that FireFox does not swear?
Received free certificates for the site, 5 ZIPs in the archive:
for Apache.zip
for IIS.zip
for Nginx.zip
for Other Server.zip
for Tomcat.zip Attached
to the site, in Chrome, Opera, IE - Ok, FireFox shows here what:
mychat-server.com is using an invalid security certificate. The certificate is not trusted because its issuer's certificate is unknown. The server might not have sent the appropriate intermediate certificates. You may need to import an additional root certificate. (Error code: sec_error_unknown_issuer)
What should I do, has anyone encountered this problem?
Answer the question
In order to leave comments, you need to log in
We managed to figure it out ourselves.
We took the files from Apache, in the source code we did this:
var https = require('https');
var fs = require("fs");
var https_options = {
ca: fs.readFileSync("/path/to/mydomain.ca-bundle"),
key: fs.readFileSync("/path/to/server.key"),
cert: fs.readFileSync("/path/to/mydomain.crt")
};
var https_server = https.createServer(https_options);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question