node-opcua-pki 3.0.2 → 3.1.1
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/.ignore +6 -6
- package/.prettierrc +5 -5
- package/LICENSE +22 -22
- package/bin/crypto_create_CA.js +0 -0
- package/bin/crypto_create_CA_config.example.js +18 -18
- package/bin/install_prerequisite.js +9 -9
- package/dist/crypto_create_CA.d.ts +2 -2
- package/dist/crypto_create_CA.js +897 -897
- package/dist/index.d.ts +6 -6
- package/dist/index.js +44 -44
- package/dist/misc/applicationurn.d.ts +1 -1
- package/dist/misc/applicationurn.js +46 -46
- package/dist/misc/hostname.d.ts +8 -8
- package/dist/misc/hostname.js +102 -102
- package/dist/misc/install_prerequisite.d.ts +9 -9
- package/dist/misc/install_prerequisite.js +363 -360
- package/dist/misc/install_prerequisite.js.map +1 -1
- package/dist/misc/subject.d.ts +26 -26
- package/dist/misc/subject.js +121 -121
- package/dist/pki/certificate_authority.d.ts +61 -61
- package/dist/pki/certificate_authority.js +481 -481
- package/dist/pki/certificate_manager.d.ts +144 -144
- package/dist/pki/certificate_manager.js +883 -883
- package/dist/pki/certificate_manager.js.map +1 -1
- package/dist/pki/common.d.ts +5 -5
- package/dist/pki/common.js +2 -2
- package/dist/pki/templates/ca_config_template.cnf.d.ts +2 -2
- package/dist/pki/templates/ca_config_template.cnf.js +129 -129
- package/dist/pki/templates/simple_config_template.cnf.d.ts +2 -2
- package/dist/pki/templates/simple_config_template.cnf.js +75 -75
- package/dist/pki/toolbox.d.ts +160 -160
- package/dist/pki/toolbox.js +699 -699
- package/dist/pki/toolbox_pfx.js +18 -18
- package/lib/crypto_create_CA.ts +1135 -1135
- package/lib/index.ts +28 -28
- package/lib/misc/applicationurn.ts +45 -45
- package/lib/misc/hostname.ts +89 -89
- package/lib/misc/install_prerequisite.ts +454 -454
- package/lib/misc/subject.ts +141 -141
- package/lib/pki/certificate_manager.ts +1 -1
- package/lib/pki/common.ts +5 -5
- package/lib/pki/templates/ca_config_template.cnf.ts +129 -129
- package/lib/pki/templates/simple_config_template.cnf.ts +75 -75
- package/lib/pki/toolbox_pfx.ts +19 -19
- package/package.json +89 -89
- package/readme.md +214 -214
- package/tsconfig.json +20 -20
- package/dist/misc/fs.d.ts +0 -24
- package/dist/misc/fs.js +0 -21
- package/dist/misc/fs.js.map +0 -1
- package/dist/misc/get_default_filesystem.d.ts +0 -2
- package/dist/misc/get_default_filesystem.js +0 -9
- package/dist/misc/get_default_filesystem.js.map +0 -1
package/dist/pki/toolbox_pfx.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Convert pfx file to pem file
|
|
3
|
-
// Conversion to a combined PEM file
|
|
4
|
-
// To convert a PFX file to a PEM file that contains both the certificate and private key,
|
|
5
|
-
// the following command needs to be used:
|
|
6
|
-
// # openssl pkcs12 -in filename.pfx -out cert.pem -nodes
|
|
7
|
-
//
|
|
8
|
-
// Conversion to separate PEM files
|
|
9
|
-
// We can extract the private key form a PFX to a PEM file with this command:
|
|
10
|
-
// # openssl pkcs12 -in filename.pfx -nocerts -out key.pem
|
|
11
|
-
//
|
|
12
|
-
// Exporting the certificate only:
|
|
13
|
-
// # openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
|
|
14
|
-
//
|
|
15
|
-
// Removing the password from the extracted private key:
|
|
16
|
-
// # openssl rsa -in key.pem -out server.keys
|
|
17
|
-
// convert pem/cert to pfx
|
|
18
|
-
// # openssl pkcs12 -inkey bob_key.pem -in bob_cert.cert -export -out bob_pfx.pfx
|
|
1
|
+
"use strict";
|
|
2
|
+
// Convert pfx file to pem file
|
|
3
|
+
// Conversion to a combined PEM file
|
|
4
|
+
// To convert a PFX file to a PEM file that contains both the certificate and private key,
|
|
5
|
+
// the following command needs to be used:
|
|
6
|
+
// # openssl pkcs12 -in filename.pfx -out cert.pem -nodes
|
|
7
|
+
//
|
|
8
|
+
// Conversion to separate PEM files
|
|
9
|
+
// We can extract the private key form a PFX to a PEM file with this command:
|
|
10
|
+
// # openssl pkcs12 -in filename.pfx -nocerts -out key.pem
|
|
11
|
+
//
|
|
12
|
+
// Exporting the certificate only:
|
|
13
|
+
// # openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
|
|
14
|
+
//
|
|
15
|
+
// Removing the password from the extracted private key:
|
|
16
|
+
// # openssl rsa -in key.pem -out server.keys
|
|
17
|
+
// convert pem/cert to pfx
|
|
18
|
+
// # openssl pkcs12 -inkey bob_key.pem -in bob_cert.cert -export -out bob_pfx.pfx
|
|
19
19
|
//# sourceMappingURL=toolbox_pfx.js.map
|