Skip to content

SSL error appear #508

@SoraKohaku

Description

@SoraKohaku

Error code: SSL_ERROR_RX_RECORD_TOO_LONG
depan

added this

// Add this section code to here
var forceSSL = require('express-force-ssl');
var https = require('https');
var fs = require('fs');
var ssl_options = {
key: fs.readFileSync('localhost.decrypted.key'),
cert: fs.readFileSync('localhost.crt')
};
// Add this section code to here

var app = express();

// Add this section code to here
var secureServer = https.createServer(ssl_options, app);
// Add this section code to here

with below

// Add below line here
secureServer.listen(445);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions