A
A
Alexey2015-11-06 16:15:09
Mozilla Firefox
Alexey, 2015-11-06 16:15:09

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:
d1b75652221049ab8a873b9eb4b0bbac.png

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

2 answer(s)
A
Alexey, 2015-11-06
@Demanoidos

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);

D
Dmitry, 2015-11-06
@2fox

1. Add certificate chain
2. ht tps://www.ssllabs.com/ssltest/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question