Category : ssl

I want to check if client who using my website https://test.com is in the same network with my "token server" http://192.168.50.51/token. The idea is to try $.get(‘https://192.168.50.51’, function(data) { console.log(data); }); and when server answer me some data, I know that client is inside local network. But when I try to make this call I ..

Read more

I have created a client/server web-game using Javascript/NodeJS WebSockets. The specific library for NodeJS is (‘ws’). I was using a linux machine on my local network to run server.js, and LiveServer through VScode to host my client files. Originally I was using ws://<localip>:8080 on serverswitch.js (the client-side JS file which handles connecting, messaging, & responding ..

Read more

I am making an app with the express.js framework for node.js but I keep getting the error. (node:3688) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:443 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) (Use `node –trace-warnings …` to show where the warning was created) (node:3688) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function ..

Read more

"publicKey":{"type":"Buffer","data":[48,130,1,10,2,130,1,1,0,215,122,244,212,213,26,79,145,189,145,65,92,135,35,46,242,205,76,176,206,185,152,87,249,150,157,47,22,75,45,35,227,211,138,211,101,230,133,177,230,28,156,98,27,46,94,120,91,240,21,239,114,38,223,197,72,11,67,230,49,194,32,226,33,232,213,89,219,129,233,214,185,184,242,6,7,119,8,125,40,177,190,60,238,252,237,6,121,154,26,36,200,63,30,27,139,216,28,61,232,162,201,64,48,95,168,129,48,29,99,51,163,27,252,142,210,173,89,86,237,174,156,233,95,250,231,15,147,159,139,177,83,12,43,252,233,0,125,21,131,84,195,115,52,149,193,198,221,72,33,248,7,116,98,19,153,99,169,60,104,185,59,99,95,106,73,76,233,116,0,132,211,79,191,161,238,39,159,203,105,56,156,60,219,233,108,224,167,149,44,143,10,92,164,37,106,251,80,79,106,64,131,171,85,171,226,134,242,8,145,93,96,252,18,139,162,137,9,165,151,30,39,175,162,117,19,154,92,255,15,91,251,48,246,142,145,87,208,227,107,225,36,165,69,220,44,153,116,46,138,23,87,244,81,180,159,2,3,1,0,1]} I am getting this Public key from a DER File after decrypting certificate using fidm (NPM package). https://www.npmjs.com/package/@fidm/x509 (Pure JavaScript X509 certificate tools for Node.js.) Now I want to calculate the public key size which is given above JSON object data. Source: Ask Javascript..

Read more