
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Receive RSA certificate information (distinguishedName, commonName, validFrom, validTo,...) from a pem or der encoded file.
##Publications:
https://blog.appit-online.de/publications/
##Table of contents:
npm install cert-infos --save
import * as certInfo from 'cert-infos';
/**
* Given a pem certificate file, get certificate information.
* @param {string} pemCertPath The path to a certificate file.
*/
const {certificate, certificateOriginal} = certInfo.getRSACertInfoPem(pemCertPath);
console.log('The short certificate information:');
console.log(certificate);
/*
{
"issuer": {
"distinguishedName": "CN=Test CA,OU=CA,O=Test GmbH,C=DE",
"components": {
"email": "",
"commonName": "Test CA",
"organizationalUnit": "CA",
"organizationName": "Test GmbH",
"localityName": "",
"stateName": "",
"country": "DE"
}
},
"subject": {
"distinguishedName": "CN=Test1 CA,OU=CA,O=Test1 GmbH,C=DE",
"components": {
"email": "",
"commonName": "Test CA",
"organizationalUnit": "CA",
"organizationName": "Test GmbH",
"localityName": "",
"stateName": "",
"country": "DE"
}
},
"serialNumber": "01",
"validFrom": "2019-01-16T11:55:00.000Z",
"validTo": "2028-01-11T12:15:00.000Z",
"version": 3
}
*/
console.log('The unconverted certificate data:');
console.log(certificateOriginal)
import * as certInfo from 'cert-infos';
/**
* Given a der certificate file, get certificate information.
* @param {string} derCertPath The path to a certificate file.
*/
const {certificate, certificateOriginal} = certInfo.getRSACertInfoDER(derCertPath);
console.log('The short certificate information:');
console.log(certificate);
console.log('The unconverted certificate data:');
console.log(certificateOriginal)
Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js.
Apache Version 2.0
See LICENSE
FAQs
Get certificate information from a rsa pem/crt/der file
The npm package cert-infos receives a total of 1 weekly downloads. As such, cert-infos popularity was classified as not popular.
We found that cert-infos demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.