https://github.com/ripjar/node-openssl
https://github.com/ripjar/node-openssl
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ripjar/node-openssl
- Owner: ripjar
- Created: 2019-07-06T15:19:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-07-30T11:25:16.000Z (11 months ago)
- Last Synced: 2026-01-01T04:20:00.055Z (6 months ago)
- Language: C
- Size: 95.7 KB
- Stars: 1
- Watchers: 18
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node openssl
This was created so that we could verify the modulus of a public and private key
match. At the moment it has two functions RSAPrivateKey and X509PublicKey. The
first reads an rsa private key and the second reads from an x509 cert.
### The output of RSAPrivateKey is as follows:
```
{
n: (hex string) // public modulus
e: (hex string) // public exponent
d: (hex string) // private exponent
p: (hex string) // secret prime factor
q: (hex string) // secret prime factor
dmp1: (hex string) // d mod (p-1)
dmq1: (hex string) // d mod (q-1)
iqmp: (hex string) // q^-1 mod p
}
```
### The output of X509PublicKey is as follows:
```
{
n: (hex string) // public modulus
e: (hex string) // public exponent
}
```
## Licence
This is licenced under the GNU Lesser General Public License version 2. See
lgpl-2.1.txt for more details.