@icedevml/tinypki-client-side-cert-req 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +26 -4
- package/dist/index.js.map +1 -1
- package/dist/types/api/savePKCS12BufferAsFile.d.ts +12 -1
- package/dist/types/internal/toPkcs12Asn1Generic.d.ts +14 -3
- package/package.json +2 -3
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The saveBufferAsFile() was derived from the pkijs (PeculiarVentures/PKI.js) library:
|
|
3
3
|
* https://github.com/PeculiarVentures/PKI.js/blob/1bb60c22567a8608f296a2d06ddc06bd2da7125e/examples/PKCS12SimpleExample/es6.ts#L9
|
|
4
|
+
*
|
|
5
|
+
* Original license: BSD-3 Clause License
|
|
6
|
+
* Full license statement is available here:
|
|
7
|
+
* https://github.com/PeculiarVentures/PKI.js/blob/1bb60c22567a8608f296a2d06ddc06bd2da7125e/LICENSE
|
|
8
|
+
*
|
|
9
|
+
* Original author/copyright:
|
|
10
|
+
* Author 2014-2019, Yury Strozhevsky
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) 2014, GlobalSign
|
|
13
|
+
* Copyright (c) 2015-2019, Peculiar Ventures
|
|
14
|
+
* All rights reserved.
|
|
4
15
|
*/
|
|
5
16
|
interface ISavePKCS12BufferAsFileParams {
|
|
6
17
|
buffer: ArrayBuffer;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The toPkcs12Asn1Generic() function was derived from the node-forge (digitalbazaar/forge) library:
|
|
3
3
|
* https://github.com/digitalbazaar/forge/blob/1cea0aff4901589ae86e314f25782bbe312f9f69/lib/pkcs12.js#L800
|
|
4
|
+
* I've hacked it around to support embedding arbitrary DER-encoded certificates and private keys
|
|
5
|
+
* regardless of their algorithm, as the original library was only accepting RSA certificates/keys.
|
|
4
6
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
+
* Original license: dual-licensed under BSD-3 Clause License and GPL Version 2, depending on the user's choice.
|
|
8
|
+
* This project opts to use the library on the terms of BSD-3 Claude License.
|
|
9
|
+
* Full license statement is available here:
|
|
10
|
+
* https://github.com/digitalbazaar/forge/blob/1cea0aff4901589ae86e314f25782bbe312f9f69/LICENSE
|
|
11
|
+
*
|
|
12
|
+
* Original author/copyright:
|
|
13
|
+
* @author Dave Longley
|
|
14
|
+
* @author Stefan Siegl <stesie@brokenpipe.de>
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) 2010-2014 Digital Bazaar, Inc.
|
|
17
|
+
* Copyright (c) 2012 Stefan Siegl <stesie@brokenpipe.de>
|
|
7
18
|
*/
|
|
8
19
|
import * as forge from "node-forge";
|
|
9
20
|
export declare const toPkcs12Asn1Generic: (key: string, cert: string | string[], password: string, options: any) => forge.asn1.Asn1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icedevml/tinypki-client-side-cert-req",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "TinyPKI ClientSideCertReq Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@peculiar/x509": "1.14.3",
|
|
29
29
|
"buffer": "^6.0.3",
|
|
30
|
-
"node-forge": "1.3.3"
|
|
31
|
-
"pkijs": "3.3.3"
|
|
30
|
+
"node-forge": "1.3.3"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
33
|
"@rollup/plugin-commonjs": "^29.0.0",
|