Check if my SSL Certificate is SHA1 or SHA2

Use the Linux Command Line Use the command line, as described in this related question: How do I check if my SSL Certificate is SHA1 or SHA2 on the commandline. Command Here’s the command. Replace www.yoursite.com:443 to fit your needs. Default SSL port is 443: openssl s_client -connect www.yoursite.com:443 < /dev/null 2>/dev/null \ | openssl … Read more

Are there any SHA-256 javascript implementations that are generally considered trustworthy? [closed]

On https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest I found this snippet that uses internal js module: async function sha256(message) { // encode as UTF-8 const msgBuffer = new TextEncoder().encode(message); // hash the message const hashBuffer = await crypto.subtle.digest(‘SHA-256’, msgBuffer); // convert ArrayBuffer to Array const hashArray = Array.from(new Uint8Array(hashBuffer)); // convert bytes to hex string const hashHex = hashArray.map(b => … Read more