i recently purchased a personal ssl certificate from Positive ssl for about 5 dollars and after i got everything sorted out with activating it and the validation i was finally able to download the certificate files the files i got were
www.niknet.ddns.net.ca-bundle
www.niknet.ddns.net.crt
www.niknet.ddns.net.p7b
now before i only used .key and .crt
and it worked great but now i am using the .ca-bundle and the .crt file
this is the code i use to include those files into the ssl library in node js
var forceSsl = require('express-force-ssl');
var httpPort = process.env.PORT || 80;
var httpsPort = process.env.PORT || 443;
var server = http.createServer(app).listen(httpPort);
var server = https.createServer({
secureProtocol : 'TLSv1_2_server_method',
ciphers : "AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH",
honorCipherOrder : true,
ca: fs.readFileSync(__dirname + '/niknet_ddns_net.ca-bundle'),
cert: fs.readFileSync(__dirname + '/niknet_ddns_net.crt')
},app).listen(httpsPort);
var io = require('socket.io').listen(server);
but i cant for the life of me get the certificate to work properly i just get this error
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
i have been reading other post and have tried adding there code but noting works i also read somewhere that the ssl or tls library for node js is kind of outdated and that my certificate could be to new if that is true is there any other thirdparty ish ssl library that i could use i am all out of options right now