Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2111a4a
initial commit
jjhoughton Jul 6, 2019
2a6660a
returns all the things about an rsa key
jjhoughton Jul 6, 2019
97776de
package.json: change package name
jjhoughton Jul 6, 2019
e8f5235
add lgpl license
jjhoughton Jul 6, 2019
3d60bb9
add some x509 stuff
jjhoughton Jul 6, 2019
c30fa20
get public key from x509 cert
jjhoughton Jul 6, 2019
f9970b9
change the name of some files
jjhoughton Jul 6, 2019
3a66b85
add some missing files
jjhoughton Jul 6, 2019
8f44825
fix typo in error message
jjhoughton Jul 6, 2019
ef764c3
add readme
jjhoughton Jul 6, 2019
243fecd
sign copyright over to ripjar
jjhoughton Jul 7, 2019
9ed5dc5
consider the size of the cert/key before allocating memory
jjhoughton Jul 7, 2019
ec99d71
do a bit more error checking
jjhoughton Jul 7, 2019
7e4eddd
add the ability to specify a passphase for the private key (#2)
jjhoughton Nov 26, 2019
a9e37ba
fix rsa_st not being defined in node12
jjhoughton May 16, 2020
0e6d9ef
Get working on openssl 3.0
jjhoughton Jun 28, 2023
6c152fe
Updated minor version
adamjjeffery Mar 4, 2024
e91b97c
Added release workflow (#9)
adamjjeffery Mar 5, 2024
cc8b710
Automatically synchronising release.yml from develop to master
Mar 10, 2024
17fae10
Updates .github/workflows/release.yml with new #li-releases channel id
adamjjeffery Apr 30, 2024
c11f236
Updates .github/workflows/release.yml with new #li-releases channel id
adamjjeffery Apr 30, 2024
8f0f5c8
Merge pull request #11 from ripjar/master
jammie1903 Sep 12, 2024
ef1c03a
use middleman workflows
Jan 14, 2025
efb9017
Merge pull request #12 from ripjar/chore/use-middleman-workflows
adammartin-ripjar Jan 15, 2025
b089c34
Botjar: Merged branch develop into master
rj-bot-1 Jul 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release Library

run-name: ${{ github.ref_name }}/${{ github.workflow }}

on:
workflow_dispatch:
inputs:
source_branch:
description: Source Branch
type: string
default: develop
required: true
base_branch:
description: Base Branch
type: string
default: master
required: true

jobs:
release:
uses: ripjar/li-ci-cd/.github/workflows/core.release-component.yaml@develop
with:
source_branch: ${{ inputs.source_branch }}
base_branch: ${{ inputs.base_branch }}
secrets: inherit
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/
node_modules
*~
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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.
11 changes: 11 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"targets": [
{
"target_name": "node_openssl",
"sources": [ "./main.c" ],
"cflags": [
"-Wall"
]
}
]
}
502 changes: 502 additions & 0 deletions lgpl-2.1.txt

Large diffs are not rendered by default.

Loading