-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support passphrase protected keys (#117)
* Added password protected keys for testing and updated generator script * Added unit test for the pp key * Updated key type checks in signer * chore: Fixed linting issues * Updated key handling in signer; Updated privateKeyMatcher in crypto; Added tests * Fixed tests for Node v10 * Updated readme with details about the new key type * Removed support for node v10, added v16 and v17 to the CI * Update .github/workflows/ci.yml * Replaced deprecated test methods; Addressed PR comments * Update README.md Co-authored-by: Shogun <[email protected]> * Update README.md Co-authored-by: Shogun <[email protected]> Co-authored-by: Simone Busoli <[email protected]> Co-authored-by: Shogun <[email protected]>
- Loading branch information
1 parent
6ab7fe7
commit dddd103
Showing
13 changed files
with
262 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x] | ||
node-version: [12, 14, 16, 17] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
-----BEGIN ENCRYPTED PRIVATE KEY----- | ||
MIIJrTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIrzFZGb4FhfwCAggA | ||
MAwGCCqGSIb3DQIJBQ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8qojZ0VV32xlN64i6DL0r8skFU | ||
qZd/90fWDPM1Js6NRCzpiKSs1Ssu9k/KCuZQChnaR7KAN0x0rosEItZ26Yfd//wv | ||
5ycST1Lk6eFoGjs1j2TvLvCW0QsFxjheG8tosus8sEEIQrduk90qEOkTuP1ztFr6 | ||
/tbS+z8/ypaJ0E4kirS0Cz2FFwBcNb/dNzEj85BBq48j | ||
-----END ENCRYPTED PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvOnLWomPr6gAkw/XlfrV | ||
xDR5VKwNawoMv/+TuTMxs3qHgEDcurW2NZZIv1JP66naSQ4YTbqAiKERVWC7UFnp | ||
ufu9I1ZN3DbQcyF39doLl0cy3zEynqbLNqfubRVMGni4mzmOO2XKgYpoObyy8Txm | ||
5RK2jj1iB2OFxsvOT1+F3ig5eInepfWfhEn3wviUR4d5jpS6D/vUdXsN+6XWKiDw | ||
/3BNpi8uTApNMNI6cKGKSV5jO4QELdYytDGN2/wt9GOAd9jKza42rlpcE7UcaSWx | ||
FEg9rFiojdQnOp3bh3SJVkiirVQR28ViNUi7X7rI15KheS6MyhxNIt+A2aeBJ1am | ||
zH5YEhrrzeVYMZ4rvOEDQZ3twjp2uWdoNbxMe2th+wODSV5YLFddbNVrcZOyD2/C | ||
hijVHbjrpLXqFMzjl06d8IS7+uIsTWnwysFHxYFrLA9t4DHECtaq1TuM+nY6NP4m | ||
M0Dqf8KbSdkkBm6wmo6Ly4LsC6t5Sm33RuaPSt96TmghWvRfJiqttBjIoyk37ife | ||
XpuilIp5dAutLMfcYRG3sDopRPJTou1AbqtS9xRzKHgo2a0ikzSNutiu+z2hlgRr | ||
TdzxlaixBfqBNFBj6YZkI+OREnAeg98uoXUcdfCSrU83+BU888GLL/qIU8mMmvln | ||
d8fYnS1P/u66gXdxUCPnIN8CAwEAAQ== | ||
-----END PUBLIC KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.