@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
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ Download: **[tinypki-client-side-cert-req-lib.js](https://github.com/icedevml/ti
|
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
29
|
-
See `demo/` directory for example usage.
|
|
29
|
+
See [`demo/`](https://github.com/icedevml/tinypki-client-side-cert-req/tree/master/demo) directory for example usage.
|
|
30
30
|
|
|
31
31
|
## Manual building
|
|
32
32
|
|
package/dist/index.js
CHANGED
|
@@ -43771,11 +43771,22 @@ function requireBuffer () {
|
|
|
43771
43771
|
var bufferExports = requireBuffer();
|
|
43772
43772
|
|
|
43773
43773
|
/**
|
|
43774
|
-
*
|
|
43774
|
+
* The toPkcs12Asn1Generic() function was derived from the node-forge (digitalbazaar/forge) library:
|
|
43775
43775
|
* https://github.com/digitalbazaar/forge/blob/1cea0aff4901589ae86e314f25782bbe312f9f69/lib/pkcs12.js#L800
|
|
43776
|
+
* I've hacked it around to support embedding arbitrary DER-encoded certificates and private keys
|
|
43777
|
+
* regardless of their algorithm, as the original library was only accepting RSA certificates/keys.
|
|
43776
43778
|
*
|
|
43777
|
-
*
|
|
43778
|
-
*
|
|
43779
|
+
* Original license: dual-licensed under BSD-3 Clause License and GPL Version 2, depending on the user's choice.
|
|
43780
|
+
* This project opts to use the library on the terms of BSD-3 Claude License.
|
|
43781
|
+
* Full license statement is available here:
|
|
43782
|
+
* https://github.com/digitalbazaar/forge/blob/1cea0aff4901589ae86e314f25782bbe312f9f69/LICENSE
|
|
43783
|
+
*
|
|
43784
|
+
* Original author/copyright:
|
|
43785
|
+
* @author Dave Longley
|
|
43786
|
+
* @author Stefan Siegl <stesie@brokenpipe.de>
|
|
43787
|
+
*
|
|
43788
|
+
* Copyright (c) 2010-2014 Digital Bazaar, Inc.
|
|
43789
|
+
* Copyright (c) 2012 Stefan Siegl <stesie@brokenpipe.de>
|
|
43779
43790
|
*/
|
|
43780
43791
|
const asn1 = libExports.asn1;
|
|
43781
43792
|
const pki = libExports.pki;
|
|
@@ -44072,8 +44083,19 @@ async function generatePKCS12({ certChainPEM, privKeyDERB64, pkcs12Password, pkc
|
|
|
44072
44083
|
}
|
|
44073
44084
|
|
|
44074
44085
|
/**
|
|
44075
|
-
*
|
|
44086
|
+
* The saveBufferAsFile() was derived from the pkijs (PeculiarVentures/PKI.js) library:
|
|
44076
44087
|
* https://github.com/PeculiarVentures/PKI.js/blob/1bb60c22567a8608f296a2d06ddc06bd2da7125e/examples/PKCS12SimpleExample/es6.ts#L9
|
|
44088
|
+
*
|
|
44089
|
+
* Original license: BSD-3 Clause License
|
|
44090
|
+
* Full license statement is available here:
|
|
44091
|
+
* https://github.com/PeculiarVentures/PKI.js/blob/1bb60c22567a8608f296a2d06ddc06bd2da7125e/LICENSE
|
|
44092
|
+
*
|
|
44093
|
+
* Original author/copyright:
|
|
44094
|
+
* Author 2014-2019, Yury Strozhevsky
|
|
44095
|
+
*
|
|
44096
|
+
* Copyright (c) 2014, GlobalSign
|
|
44097
|
+
* Copyright (c) 2015-2019, Peculiar Ventures
|
|
44098
|
+
* All rights reserved.
|
|
44077
44099
|
*/
|
|
44078
44100
|
function destroyClickedElement(event) {
|
|
44079
44101
|
document.body.removeChild(event.target);
|