Skip to content

Commit

Permalink
new rpc cert
Browse files Browse the repository at this point in the history
  • Loading branch information
madMAx43v3r authored Oct 2, 2024
1 parent 28bfca7 commit 72af532
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/rpc-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ setInterval(reset_pending, load_balance_tick);
console.log("Listening on port 80 ...");
}

const cert_path = '/etc/letsencrypt/live/rpc.mmx.network/';
const cert_path = '/root/.acme.sh/rpc.mmx.network_ecc/';

if(fs.existsSync(cert_path))
{
var options = {
key: fs.readFileSync(cert_path + 'privkey.pem'),
cert: fs.readFileSync(cert_path + 'fullchain.pem'),
ca: fs.readFileSync(cert_path + 'chain.pem')
key: fs.readFileSync(cert_path + 'rpc.mmx.network.key'),
cert: fs.readFileSync(cert_path + 'fullchain.cer'),
ca: fs.readFileSync(cert_path + 'ca.cer')
};

https.createServer(options, app).listen(443);
Expand Down

0 comments on commit 72af532

Please sign in to comment.