node-opcua-crypto 5.3.1 → 5.3.2
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/dist/{chunk-MUTGGDEL.cjs → chunk-IKQT3ICS.cjs} +22 -22
- package/dist/{chunk-MUTGGDEL.cjs.map → chunk-IKQT3ICS.cjs.map} +1 -1
- package/dist/{chunk-Z4PNMXBN.js → chunk-ODR4HUB7.js} +64 -13
- package/dist/chunk-ODR4HUB7.js.map +1 -0
- package/dist/{chunk-3KSBDOQT.cjs → chunk-TSW463FI.cjs} +66 -15
- package/dist/chunk-TSW463FI.cjs.map +1 -0
- package/dist/{chunk-ISWOJ526.js → chunk-UEEZA3YS.js} +2 -2
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -3
- package/dist/source/index_web.cjs +6 -2
- package/dist/source/index_web.cjs.map +1 -1
- package/dist/source/index_web.d.cts +10 -1
- package/dist/source/index_web.d.ts +10 -1
- package/dist/source/index_web.js +7 -3
- package/dist/source_nodejs/index.cjs +3 -3
- package/dist/source_nodejs/index.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-3KSBDOQT.cjs.map +0 -1
- package/dist/chunk-Z4PNMXBN.js.map +0 -1
- /package/dist/{chunk-ISWOJ526.js.map → chunk-UEEZA3YS.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
removeTrailingLF,
|
|
9
9
|
split_der,
|
|
10
10
|
toPem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ODR4HUB7.js";
|
|
12
12
|
|
|
13
13
|
// source_nodejs/generate_private_key_filename.ts
|
|
14
14
|
import { generateKeyPairSync } from "crypto";
|
|
@@ -280,4 +280,4 @@ export {
|
|
|
280
280
|
writeCertificateChainDer,
|
|
281
281
|
writeCertificateChainDerAsync
|
|
282
282
|
};
|
|
283
|
-
//# sourceMappingURL=chunk-
|
|
283
|
+
//# sourceMappingURL=chunk-UEEZA3YS.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkIKQT3ICScjs = require('./chunk-IKQT3ICS.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -104,9 +104,9 @@ var _chunkMUTGGDELcjs = require('./chunk-MUTGGDEL.cjs');
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
|
|
107
|
-
var _chunk3KSBDOQTcjs = require('./chunk-3KSBDOQT.cjs');
|
|
108
107
|
|
|
109
108
|
|
|
109
|
+
var _chunkTSW463FIcjs = require('./chunk-TSW463FI.cjs');
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
@@ -209,5 +209,9 @@ var _chunk3KSBDOQTcjs = require('./chunk-3KSBDOQT.cjs');
|
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
exports.CertificatePurpose = _chunkTSW463FIcjs.CertificatePurpose; exports.PaddingAlgorithm = _chunkTSW463FIcjs.PaddingAlgorithm; exports.RSA_PKCS1_OAEP_PADDING = _chunkTSW463FIcjs.RSA_PKCS1_OAEP_PADDING; exports.RSA_PKCS1_PADDING = _chunkTSW463FIcjs.RSA_PKCS1_PADDING; exports.Subject = _chunkTSW463FIcjs.Subject; exports._coercePrivateKey = _chunkTSW463FIcjs._coercePrivateKey; exports.asn1 = _chunkTSW463FIcjs.asn1; exports.certificateMatchesPrivateKey = _chunkTSW463FIcjs.certificateMatchesPrivateKey; exports.certificatesToDer = _chunkIKQT3ICScjs.certificatesToDer; exports.certificatesToPem = _chunkIKQT3ICScjs.certificatesToPem; exports.clearExploreCertificateCache = _chunkTSW463FIcjs.clearExploreCertificateCache; exports.coerceCertificate = _chunkTSW463FIcjs.coerceCertificate; exports.coerceCertificatePem = _chunkTSW463FIcjs.coerceCertificatePem; exports.coercePEMorDerToPrivateKey = _chunkTSW463FIcjs.coercePEMorDerToPrivateKey; exports.coercePrivateKeyPem = _chunkTSW463FIcjs.coercePrivateKeyPem; exports.coercePublicKeyPem = _chunkTSW463FIcjs.coercePublicKeyPem; exports.coerceRsaPublicKeyPem = _chunkTSW463FIcjs.coerceRsaPublicKeyPem; exports.combine_der = _chunkTSW463FIcjs.combine_der; exports.computeDerivedKeys = _chunkTSW463FIcjs.computeDerivedKeys; exports.computePaddingFooter = _chunkTSW463FIcjs.computePaddingFooter; exports.convertPEMtoDER = _chunkTSW463FIcjs.convertPEMtoDER; exports.createCertificateSigningRequest = _chunkTSW463FIcjs.createCertificateSigningRequest; exports.createPrivateKeyFromNodeJSCrypto = _chunkTSW463FIcjs.createPrivateKeyFromNodeJSCrypto; exports.createSelfSignedCertificate = _chunkTSW463FIcjs.createSelfSignedCertificate; exports.decryptBufferWithDerivedKeys = _chunkTSW463FIcjs.decryptBufferWithDerivedKeys; exports.derToPrivateKey = _chunkTSW463FIcjs.derToPrivateKey; exports.encryptBufferWithDerivedKeys = _chunkTSW463FIcjs.encryptBufferWithDerivedKeys; exports.exploreAsn1 = _chunkTSW463FIcjs.exploreAsn1; exports.exploreCertificate = _chunkTSW463FIcjs.exploreCertificate; exports.exploreCertificateInfo = _chunkTSW463FIcjs.exploreCertificateInfo; exports.exploreCertificateRevocationList = _chunkTSW463FIcjs.exploreCertificateRevocationList; exports.exploreCertificateSigningRequest = _chunkTSW463FIcjs.exploreCertificateSigningRequest; exports.explorePrivateKey = _chunkTSW463FIcjs.explorePrivateKey; exports.extractPublicKeyFromCertificate = _chunkTSW463FIcjs.extractPublicKeyFromCertificate; exports.extractPublicKeyFromCertificateSync = _chunkTSW463FIcjs.extractPublicKeyFromCertificateSync; exports.generateKeyPair = _chunkTSW463FIcjs.generateKeyPair; exports.generatePrivateKey = _chunkTSW463FIcjs.generatePrivateKey; exports.generatePrivateKeyFile = _chunkIKQT3ICScjs.generatePrivateKeyFile; exports.generatePrivateKeyFileAlternate = _chunkIKQT3ICScjs.generatePrivateKeyFileAlternate; exports.getCertificateStore = _chunkIKQT3ICScjs.getCertificateStore; exports.hexDump = _chunkTSW463FIcjs.hexDump; exports.identifyDERContent = _chunkTSW463FIcjs.identifyDERContent; exports.identifyPemType = _chunkTSW463FIcjs.identifyPemType; exports.isCrlIssuedByCertificate = _chunkTSW463FIcjs.isCrlIssuedByCertificate; exports.isKeyObject = _chunkTSW463FIcjs.isKeyObject; exports.makeMessageChunkSignature = _chunkTSW463FIcjs.makeMessageChunkSignature; exports.makeMessageChunkSignatureWithDerivedKeys = _chunkTSW463FIcjs.makeMessageChunkSignatureWithDerivedKeys; exports.makePrivateKeyFromPem = _chunkTSW463FIcjs.makePrivateKeyFromPem; exports.makePrivateKeyThumbPrint = _chunkTSW463FIcjs.makePrivateKeyThumbPrint; exports.makePseudoRandomBuffer = _chunkTSW463FIcjs.makePseudoRandomBuffer; exports.makeSHA1Thumbprint = _chunkTSW463FIcjs.makeSHA1Thumbprint; exports.pemToPrivateKey = _chunkTSW463FIcjs.pemToPrivateKey; exports.privateDecrypt = _chunkTSW463FIcjs.privateDecrypt; exports.privateDecrypt_long = _chunkTSW463FIcjs.privateDecrypt_long; exports.privateDecrypt_native = _chunkTSW463FIcjs.privateDecrypt_native; exports.privateKeyToPEM = _chunkTSW463FIcjs.privateKeyToPEM; exports.publicEncrypt = _chunkTSW463FIcjs.publicEncrypt; exports.publicEncrypt_long = _chunkTSW463FIcjs.publicEncrypt_long; exports.publicEncrypt_native = _chunkTSW463FIcjs.publicEncrypt_native; exports.publicKeyAndPrivateKeyMatches = _chunkTSW463FIcjs.publicKeyAndPrivateKeyMatches; exports.readCertificate = _chunkIKQT3ICScjs.readCertificate; exports.readCertificateAsync = _chunkIKQT3ICScjs.readCertificateAsync; exports.readCertificateChain = _chunkIKQT3ICScjs.readCertificateChain; exports.readCertificateChainAsync = _chunkIKQT3ICScjs.readCertificateChainAsync; exports.readCertificatePEM = _chunkIKQT3ICScjs.readCertificatePEM; exports.readCertificatePEMAsync = _chunkIKQT3ICScjs.readCertificatePEMAsync; exports.readCertificateRevocationList = _chunkIKQT3ICScjs.readCertificateRevocationList; exports.readCertificateSigningRequest = _chunkIKQT3ICScjs.readCertificateSigningRequest; exports.readCertificationRequestInfo = _chunkTSW463FIcjs.readCertificationRequestInfo; exports.readExtension = _chunkTSW463FIcjs.readExtension; exports.readNameForCrl = _chunkTSW463FIcjs.readNameForCrl; exports.readPrivateKey = _chunkIKQT3ICScjs.readPrivateKey; exports.readPrivateKeyAsync = _chunkIKQT3ICScjs.readPrivateKeyAsync; exports.readPrivateKeyPEM = _chunkIKQT3ICScjs.readPrivateKeyPEM; exports.readPrivateKeyPEMAsync = _chunkIKQT3ICScjs.readPrivateKeyPEMAsync; exports.readPrivateRsaKey = _chunkIKQT3ICScjs.readPrivateRsaKey; exports.readPublicKey = _chunkIKQT3ICScjs.readPublicKey; exports.readPublicKeyAsync = _chunkIKQT3ICScjs.readPublicKeyAsync; exports.readPublicKeyPEM = _chunkIKQT3ICScjs.readPublicKeyPEM; exports.readPublicKeyPEMAsync = _chunkIKQT3ICScjs.readPublicKeyPEMAsync; exports.readPublicRsaKey = _chunkIKQT3ICScjs.readPublicRsaKey; exports.readTbsCertificate = _chunkTSW463FIcjs.readTbsCertificate; exports.reduceLength = _chunkTSW463FIcjs.reduceLength; exports.removePadding = _chunkTSW463FIcjs.removePadding; exports.removeTrailingLF = _chunkTSW463FIcjs.removeTrailingLF; exports.rsaLengthPrivateKey = _chunkTSW463FIcjs.rsaLengthPrivateKey; exports.rsaLengthPublicKey = _chunkTSW463FIcjs.rsaLengthPublicKey; exports.rsaLengthRsaPublicKey = _chunkTSW463FIcjs.rsaLengthRsaPublicKey; exports.setCertificateStore = _chunkIKQT3ICScjs.setCertificateStore; exports.split_der = _chunkTSW463FIcjs.split_der; exports.toPem = _chunkTSW463FIcjs.toPem; exports.toPem2 = _chunkTSW463FIcjs.toPem2; exports.verifyCertificateChain = _chunkTSW463FIcjs.verifyCertificateChain; exports.verifyCertificateOrClrSignature = _chunkTSW463FIcjs.verifyCertificateOrClrSignature; exports.verifyCertificateRevocationListSignature = _chunkTSW463FIcjs.verifyCertificateRevocationListSignature; exports.verifyCertificateSignature = _chunkTSW463FIcjs.verifyCertificateSignature; exports.verifyChunkSignature = _chunkTSW463FIcjs.verifyChunkSignature; exports.verifyChunkSignatureWithDerivedKeys = _chunkTSW463FIcjs.verifyChunkSignatureWithDerivedKeys; exports.verifyCrlIssuedByCertificate = _chunkTSW463FIcjs.verifyCrlIssuedByCertificate; exports.verifyMessageChunkSignature = _chunkTSW463FIcjs.verifyMessageChunkSignature; exports.verify_certificate_der_structure = _chunkTSW463FIcjs.verify_certificate_der_structure; exports.writeCertificateChain = _chunkIKQT3ICScjs.writeCertificateChain; exports.writeCertificateChainAsync = _chunkIKQT3ICScjs.writeCertificateChainAsync; exports.writeCertificateChainDer = _chunkIKQT3ICScjs.writeCertificateChainDer; exports.writeCertificateChainDerAsync = _chunkIKQT3ICScjs.writeCertificateChainDerAsync;
|
|
213
217
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/node-opcua-crypto/node-opcua-crypto/packages/node-opcua-crypto/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/node-opcua-crypto/node-opcua-crypto/packages/node-opcua-crypto/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,w4OAAC","file":"/home/runner/work/node-opcua-crypto/node-opcua-crypto/packages/node-opcua-crypto/dist/index.cjs"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AttributeTypeAndValue, AuthorityKeyIdentifier, BasicConstraints, CertificateExtension, CertificateInfo, CertificateInternals, CertificateRevocationListInfo, CertificateSerialNumber, CertificateSigningRequestInfo, ComputeDerivedKeysOptions, CreateSelfSignCertificateOptions, DERContentType, DerivedKeys, DirectoryName, ExtensionRequest, Extensions, Name, PaddingAlgorithm, PrivateKeyInternals, PublicKeyLength, RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING, RevokedCertificate, Subject, SubjectAltName, SubjectOptions, SubjectPublicKey, SubjectPublicKeyInfo, TBSCertList, TbsCertificate, Validity, VerifyChunkSignatureOptions, VerifyMessageChunkSignatureOptions, Version, X509ExtKeyUsage, X509KeyUsage, _VerifyStatus, _coercePrivateKey, asn1, certificateMatchesPrivateKey, coerceCertificate, coerceCertificatePem, coercePEMorDerToPrivateKey, coercePrivateKeyPem, coercePublicKeyPem, coerceRsaPublicKeyPem, combine_der, computeDerivedKeys, computePaddingFooter, convertPEMtoDER, createCertificateSigningRequest, createSelfSignedCertificate, decryptBufferWithDerivedKeys, derToPrivateKey, encryptBufferWithDerivedKeys, exploreAsn1, exploreCertificate, exploreCertificateInfo, exploreCertificateRevocationList, exploreCertificateSigningRequest, explorePrivateKey, extractPublicKeyFromCertificate, extractPublicKeyFromCertificateSync, generateKeyPair, generatePrivateKey, hexDump, identifyDERContent, identifyPemType, isCrlIssuedByCertificate, makeMessageChunkSignature, makeMessageChunkSignatureWithDerivedKeys, makePrivateKeyFromPem, makePrivateKeyThumbPrint, makePseudoRandomBuffer, makeSHA1Thumbprint, pemToPrivateKey, privateDecrypt, privateDecrypt_long, privateDecrypt_native, privateKeyToPEM, publicEncrypt, publicEncrypt_long, publicEncrypt_native, publicKeyAndPrivateKeyMatches, readCertificationRequestInfo, readExtension, readNameForCrl, readTbsCertificate, reduceLength, removePadding, removeTrailingLF, rsaLengthPrivateKey, rsaLengthPublicKey, rsaLengthRsaPublicKey, split_der, toPem, toPem2, verifyCertificateChain, verifyCertificateOrClrSignature, verifyCertificateRevocationListSignature, verifyCertificateSignature, verifyChunkSignature, verifyChunkSignatureWithDerivedKeys, verifyCrlIssuedByCertificate, verifyMessageChunkSignature } from './source/index_web.cjs';
|
|
1
|
+
export { AttributeTypeAndValue, AuthorityKeyIdentifier, BasicConstraints, CertificateExtension, CertificateInfo, CertificateInternals, CertificateRevocationListInfo, CertificateSerialNumber, CertificateSigningRequestInfo, ComputeDerivedKeysOptions, CreateSelfSignCertificateOptions, DERContentType, DerivedKeys, DirectoryName, ExtensionRequest, Extensions, Name, PaddingAlgorithm, PrivateKeyInternals, PublicKeyLength, RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING, RevokedCertificate, Subject, SubjectAltName, SubjectOptions, SubjectPublicKey, SubjectPublicKeyInfo, TBSCertList, TbsCertificate, Validity, VerifyChunkSignatureOptions, VerifyMessageChunkSignatureOptions, Version, X509ExtKeyUsage, X509KeyUsage, _VerifyStatus, _coercePrivateKey, asn1, certificateMatchesPrivateKey, clearExploreCertificateCache, coerceCertificate, coerceCertificatePem, coercePEMorDerToPrivateKey, coercePrivateKeyPem, coercePublicKeyPem, coerceRsaPublicKeyPem, combine_der, computeDerivedKeys, computePaddingFooter, convertPEMtoDER, createCertificateSigningRequest, createSelfSignedCertificate, decryptBufferWithDerivedKeys, derToPrivateKey, encryptBufferWithDerivedKeys, exploreAsn1, exploreCertificate, exploreCertificateInfo, exploreCertificateRevocationList, exploreCertificateSigningRequest, explorePrivateKey, extractPublicKeyFromCertificate, extractPublicKeyFromCertificateSync, generateKeyPair, generatePrivateKey, hexDump, identifyDERContent, identifyPemType, isCrlIssuedByCertificate, makeMessageChunkSignature, makeMessageChunkSignatureWithDerivedKeys, makePrivateKeyFromPem, makePrivateKeyThumbPrint, makePseudoRandomBuffer, makeSHA1Thumbprint, pemToPrivateKey, privateDecrypt, privateDecrypt_long, privateDecrypt_native, privateKeyToPEM, publicEncrypt, publicEncrypt_long, publicEncrypt_native, publicKeyAndPrivateKeyMatches, readCertificationRequestInfo, readExtension, readNameForCrl, readTbsCertificate, reduceLength, removePadding, removeTrailingLF, rsaLengthPrivateKey, rsaLengthPublicKey, rsaLengthRsaPublicKey, split_der, toPem, toPem2, verifyCertificateChain, verifyCertificateOrClrSignature, verifyCertificateRevocationListSignature, verifyCertificateSignature, verifyChunkSignature, verifyChunkSignatureWithDerivedKeys, verifyCrlIssuedByCertificate, verifyMessageChunkSignature, verify_certificate_der_structure } from './source/index_web.cjs';
|
|
2
2
|
export { CertificateSigningRequest, certificatesToDer, certificatesToPem, generatePrivateKeyFile, generatePrivateKeyFileAlternate, getCertificateStore, readCertificate, readCertificateAsync, readCertificateChain, readCertificateChainAsync, readCertificatePEM, readCertificatePEMAsync, readCertificateRevocationList, readCertificateSigningRequest, readPrivateKey, readPrivateKeyAsync, readPrivateKeyPEM, readPrivateKeyPEMAsync, readPrivateRsaKey, readPublicKey, readPublicKeyAsync, readPublicKeyPEM, readPublicKeyPEMAsync, readPublicRsaKey, setCertificateStore, writeCertificateChain, writeCertificateChainAsync, writeCertificateChainDer, writeCertificateChainDerAsync } from './source_nodejs/index.cjs';
|
|
3
3
|
export { C as Certificate, d as CertificatePEM, h as CertificatePurpose, g as CertificateRevocationList, D as DER, K as KeyObject, N as Nonce, b as PEM, P as PrivateKey, e as PrivateKeyPEM, a as PublicKey, f as PublicKeyPEM, S as Signature, c as createPrivateKeyFromNodeJSCrypto, i as isKeyObject } from './common-DxHkx4Pv.cjs';
|
|
4
4
|
import '@peculiar/x509';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AttributeTypeAndValue, AuthorityKeyIdentifier, BasicConstraints, CertificateExtension, CertificateInfo, CertificateInternals, CertificateRevocationListInfo, CertificateSerialNumber, CertificateSigningRequestInfo, ComputeDerivedKeysOptions, CreateSelfSignCertificateOptions, DERContentType, DerivedKeys, DirectoryName, ExtensionRequest, Extensions, Name, PaddingAlgorithm, PrivateKeyInternals, PublicKeyLength, RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING, RevokedCertificate, Subject, SubjectAltName, SubjectOptions, SubjectPublicKey, SubjectPublicKeyInfo, TBSCertList, TbsCertificate, Validity, VerifyChunkSignatureOptions, VerifyMessageChunkSignatureOptions, Version, X509ExtKeyUsage, X509KeyUsage, _VerifyStatus, _coercePrivateKey, asn1, certificateMatchesPrivateKey, coerceCertificate, coerceCertificatePem, coercePEMorDerToPrivateKey, coercePrivateKeyPem, coercePublicKeyPem, coerceRsaPublicKeyPem, combine_der, computeDerivedKeys, computePaddingFooter, convertPEMtoDER, createCertificateSigningRequest, createSelfSignedCertificate, decryptBufferWithDerivedKeys, derToPrivateKey, encryptBufferWithDerivedKeys, exploreAsn1, exploreCertificate, exploreCertificateInfo, exploreCertificateRevocationList, exploreCertificateSigningRequest, explorePrivateKey, extractPublicKeyFromCertificate, extractPublicKeyFromCertificateSync, generateKeyPair, generatePrivateKey, hexDump, identifyDERContent, identifyPemType, isCrlIssuedByCertificate, makeMessageChunkSignature, makeMessageChunkSignatureWithDerivedKeys, makePrivateKeyFromPem, makePrivateKeyThumbPrint, makePseudoRandomBuffer, makeSHA1Thumbprint, pemToPrivateKey, privateDecrypt, privateDecrypt_long, privateDecrypt_native, privateKeyToPEM, publicEncrypt, publicEncrypt_long, publicEncrypt_native, publicKeyAndPrivateKeyMatches, readCertificationRequestInfo, readExtension, readNameForCrl, readTbsCertificate, reduceLength, removePadding, removeTrailingLF, rsaLengthPrivateKey, rsaLengthPublicKey, rsaLengthRsaPublicKey, split_der, toPem, toPem2, verifyCertificateChain, verifyCertificateOrClrSignature, verifyCertificateRevocationListSignature, verifyCertificateSignature, verifyChunkSignature, verifyChunkSignatureWithDerivedKeys, verifyCrlIssuedByCertificate, verifyMessageChunkSignature } from './source/index_web.js';
|
|
1
|
+
export { AttributeTypeAndValue, AuthorityKeyIdentifier, BasicConstraints, CertificateExtension, CertificateInfo, CertificateInternals, CertificateRevocationListInfo, CertificateSerialNumber, CertificateSigningRequestInfo, ComputeDerivedKeysOptions, CreateSelfSignCertificateOptions, DERContentType, DerivedKeys, DirectoryName, ExtensionRequest, Extensions, Name, PaddingAlgorithm, PrivateKeyInternals, PublicKeyLength, RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING, RevokedCertificate, Subject, SubjectAltName, SubjectOptions, SubjectPublicKey, SubjectPublicKeyInfo, TBSCertList, TbsCertificate, Validity, VerifyChunkSignatureOptions, VerifyMessageChunkSignatureOptions, Version, X509ExtKeyUsage, X509KeyUsage, _VerifyStatus, _coercePrivateKey, asn1, certificateMatchesPrivateKey, clearExploreCertificateCache, coerceCertificate, coerceCertificatePem, coercePEMorDerToPrivateKey, coercePrivateKeyPem, coercePublicKeyPem, coerceRsaPublicKeyPem, combine_der, computeDerivedKeys, computePaddingFooter, convertPEMtoDER, createCertificateSigningRequest, createSelfSignedCertificate, decryptBufferWithDerivedKeys, derToPrivateKey, encryptBufferWithDerivedKeys, exploreAsn1, exploreCertificate, exploreCertificateInfo, exploreCertificateRevocationList, exploreCertificateSigningRequest, explorePrivateKey, extractPublicKeyFromCertificate, extractPublicKeyFromCertificateSync, generateKeyPair, generatePrivateKey, hexDump, identifyDERContent, identifyPemType, isCrlIssuedByCertificate, makeMessageChunkSignature, makeMessageChunkSignatureWithDerivedKeys, makePrivateKeyFromPem, makePrivateKeyThumbPrint, makePseudoRandomBuffer, makeSHA1Thumbprint, pemToPrivateKey, privateDecrypt, privateDecrypt_long, privateDecrypt_native, privateKeyToPEM, publicEncrypt, publicEncrypt_long, publicEncrypt_native, publicKeyAndPrivateKeyMatches, readCertificationRequestInfo, readExtension, readNameForCrl, readTbsCertificate, reduceLength, removePadding, removeTrailingLF, rsaLengthPrivateKey, rsaLengthPublicKey, rsaLengthRsaPublicKey, split_der, toPem, toPem2, verifyCertificateChain, verifyCertificateOrClrSignature, verifyCertificateRevocationListSignature, verifyCertificateSignature, verifyChunkSignature, verifyChunkSignatureWithDerivedKeys, verifyCrlIssuedByCertificate, verifyMessageChunkSignature, verify_certificate_der_structure } from './source/index_web.js';
|
|
2
2
|
export { CertificateSigningRequest, certificatesToDer, certificatesToPem, generatePrivateKeyFile, generatePrivateKeyFileAlternate, getCertificateStore, readCertificate, readCertificateAsync, readCertificateChain, readCertificateChainAsync, readCertificatePEM, readCertificatePEMAsync, readCertificateRevocationList, readCertificateSigningRequest, readPrivateKey, readPrivateKeyAsync, readPrivateKeyPEM, readPrivateKeyPEMAsync, readPrivateRsaKey, readPublicKey, readPublicKeyAsync, readPublicKeyPEM, readPublicKeyPEMAsync, readPublicRsaKey, setCertificateStore, writeCertificateChain, writeCertificateChainAsync, writeCertificateChainDer, writeCertificateChainDerAsync } from './source_nodejs/index.js';
|
|
3
3
|
export { C as Certificate, d as CertificatePEM, h as CertificatePurpose, g as CertificateRevocationList, D as DER, K as KeyObject, N as Nonce, b as PEM, P as PrivateKey, e as PrivateKeyPEM, a as PublicKey, f as PublicKeyPEM, S as Signature, c as createPrivateKeyFromNodeJSCrypto, i as isKeyObject } from './common-DxHkx4Pv.js';
|
|
4
4
|
import '@peculiar/x509';
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
writeCertificateChainAsync,
|
|
28
28
|
writeCertificateChainDer,
|
|
29
29
|
writeCertificateChainDerAsync
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UEEZA3YS.js";
|
|
31
31
|
import {
|
|
32
32
|
CertificatePurpose,
|
|
33
33
|
PaddingAlgorithm,
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
_coercePrivateKey,
|
|
38
38
|
asn1,
|
|
39
39
|
certificateMatchesPrivateKey,
|
|
40
|
+
clearExploreCertificateCache,
|
|
40
41
|
coerceCertificate,
|
|
41
42
|
coerceCertificatePem,
|
|
42
43
|
coercePEMorDerToPrivateKey,
|
|
@@ -103,8 +104,9 @@ import {
|
|
|
103
104
|
verifyChunkSignature,
|
|
104
105
|
verifyChunkSignatureWithDerivedKeys,
|
|
105
106
|
verifyCrlIssuedByCertificate,
|
|
106
|
-
verifyMessageChunkSignature
|
|
107
|
-
|
|
107
|
+
verifyMessageChunkSignature,
|
|
108
|
+
verify_certificate_der_structure
|
|
109
|
+
} from "./chunk-ODR4HUB7.js";
|
|
108
110
|
export {
|
|
109
111
|
CertificatePurpose,
|
|
110
112
|
PaddingAlgorithm,
|
|
@@ -116,6 +118,7 @@ export {
|
|
|
116
118
|
certificateMatchesPrivateKey,
|
|
117
119
|
certificatesToDer,
|
|
118
120
|
certificatesToPem,
|
|
121
|
+
clearExploreCertificateCache,
|
|
119
122
|
coerceCertificate,
|
|
120
123
|
coerceCertificatePem,
|
|
121
124
|
coercePEMorDerToPrivateKey,
|
|
@@ -205,6 +208,7 @@ export {
|
|
|
205
208
|
verifyChunkSignatureWithDerivedKeys,
|
|
206
209
|
verifyCrlIssuedByCertificate,
|
|
207
210
|
verifyMessageChunkSignature,
|
|
211
|
+
verify_certificate_der_structure,
|
|
208
212
|
writeCertificateChain,
|
|
209
213
|
writeCertificateChainAsync,
|
|
210
214
|
writeCertificateChainDer,
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var _chunk3KSBDOQTcjs = require('../chunk-3KSBDOQT.cjs');
|
|
78
77
|
|
|
79
78
|
|
|
79
|
+
var _chunkTSW463FIcjs = require('../chunk-TSW463FI.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
@@ -151,5 +151,9 @@ var _chunk3KSBDOQTcjs = require('../chunk-3KSBDOQT.cjs');
|
|
|
151
151
|
|
|
152
152
|
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
exports.CertificatePurpose = _chunkTSW463FIcjs.CertificatePurpose; exports.PaddingAlgorithm = _chunkTSW463FIcjs.PaddingAlgorithm; exports.RSA_PKCS1_OAEP_PADDING = _chunkTSW463FIcjs.RSA_PKCS1_OAEP_PADDING; exports.RSA_PKCS1_PADDING = _chunkTSW463FIcjs.RSA_PKCS1_PADDING; exports.Subject = _chunkTSW463FIcjs.Subject; exports._coercePrivateKey = _chunkTSW463FIcjs._coercePrivateKey; exports.asn1 = _chunkTSW463FIcjs.asn1; exports.certificateMatchesPrivateKey = _chunkTSW463FIcjs.certificateMatchesPrivateKey; exports.clearExploreCertificateCache = _chunkTSW463FIcjs.clearExploreCertificateCache; exports.coerceCertificate = _chunkTSW463FIcjs.coerceCertificate; exports.coerceCertificatePem = _chunkTSW463FIcjs.coerceCertificatePem; exports.coercePEMorDerToPrivateKey = _chunkTSW463FIcjs.coercePEMorDerToPrivateKey; exports.coercePrivateKeyPem = _chunkTSW463FIcjs.coercePrivateKeyPem; exports.coercePublicKeyPem = _chunkTSW463FIcjs.coercePublicKeyPem; exports.coerceRsaPublicKeyPem = _chunkTSW463FIcjs.coerceRsaPublicKeyPem; exports.combine_der = _chunkTSW463FIcjs.combine_der; exports.computeDerivedKeys = _chunkTSW463FIcjs.computeDerivedKeys; exports.computePaddingFooter = _chunkTSW463FIcjs.computePaddingFooter; exports.convertPEMtoDER = _chunkTSW463FIcjs.convertPEMtoDER; exports.createCertificateSigningRequest = _chunkTSW463FIcjs.createCertificateSigningRequest; exports.createPrivateKeyFromNodeJSCrypto = _chunkTSW463FIcjs.createPrivateKeyFromNodeJSCrypto; exports.createSelfSignedCertificate = _chunkTSW463FIcjs.createSelfSignedCertificate; exports.decryptBufferWithDerivedKeys = _chunkTSW463FIcjs.decryptBufferWithDerivedKeys; exports.derToPrivateKey = _chunkTSW463FIcjs.derToPrivateKey; exports.encryptBufferWithDerivedKeys = _chunkTSW463FIcjs.encryptBufferWithDerivedKeys; exports.exploreAsn1 = _chunkTSW463FIcjs.exploreAsn1; exports.exploreCertificate = _chunkTSW463FIcjs.exploreCertificate; exports.exploreCertificateInfo = _chunkTSW463FIcjs.exploreCertificateInfo; exports.exploreCertificateRevocationList = _chunkTSW463FIcjs.exploreCertificateRevocationList; exports.exploreCertificateSigningRequest = _chunkTSW463FIcjs.exploreCertificateSigningRequest; exports.explorePrivateKey = _chunkTSW463FIcjs.explorePrivateKey; exports.extractPublicKeyFromCertificate = _chunkTSW463FIcjs.extractPublicKeyFromCertificate; exports.extractPublicKeyFromCertificateSync = _chunkTSW463FIcjs.extractPublicKeyFromCertificateSync; exports.generateKeyPair = _chunkTSW463FIcjs.generateKeyPair; exports.generatePrivateKey = _chunkTSW463FIcjs.generatePrivateKey; exports.hexDump = _chunkTSW463FIcjs.hexDump; exports.identifyDERContent = _chunkTSW463FIcjs.identifyDERContent; exports.identifyPemType = _chunkTSW463FIcjs.identifyPemType; exports.isCrlIssuedByCertificate = _chunkTSW463FIcjs.isCrlIssuedByCertificate; exports.isKeyObject = _chunkTSW463FIcjs.isKeyObject; exports.makeMessageChunkSignature = _chunkTSW463FIcjs.makeMessageChunkSignature; exports.makeMessageChunkSignatureWithDerivedKeys = _chunkTSW463FIcjs.makeMessageChunkSignatureWithDerivedKeys; exports.makePrivateKeyFromPem = _chunkTSW463FIcjs.makePrivateKeyFromPem; exports.makePrivateKeyThumbPrint = _chunkTSW463FIcjs.makePrivateKeyThumbPrint; exports.makePseudoRandomBuffer = _chunkTSW463FIcjs.makePseudoRandomBuffer; exports.makeSHA1Thumbprint = _chunkTSW463FIcjs.makeSHA1Thumbprint; exports.pemToPrivateKey = _chunkTSW463FIcjs.pemToPrivateKey; exports.privateDecrypt = _chunkTSW463FIcjs.privateDecrypt; exports.privateDecrypt_long = _chunkTSW463FIcjs.privateDecrypt_long; exports.privateDecrypt_native = _chunkTSW463FIcjs.privateDecrypt_native; exports.privateKeyToPEM = _chunkTSW463FIcjs.privateKeyToPEM; exports.publicEncrypt = _chunkTSW463FIcjs.publicEncrypt; exports.publicEncrypt_long = _chunkTSW463FIcjs.publicEncrypt_long; exports.publicEncrypt_native = _chunkTSW463FIcjs.publicEncrypt_native; exports.publicKeyAndPrivateKeyMatches = _chunkTSW463FIcjs.publicKeyAndPrivateKeyMatches; exports.readCertificationRequestInfo = _chunkTSW463FIcjs.readCertificationRequestInfo; exports.readExtension = _chunkTSW463FIcjs.readExtension; exports.readNameForCrl = _chunkTSW463FIcjs.readNameForCrl; exports.readTbsCertificate = _chunkTSW463FIcjs.readTbsCertificate; exports.reduceLength = _chunkTSW463FIcjs.reduceLength; exports.removePadding = _chunkTSW463FIcjs.removePadding; exports.removeTrailingLF = _chunkTSW463FIcjs.removeTrailingLF; exports.rsaLengthPrivateKey = _chunkTSW463FIcjs.rsaLengthPrivateKey; exports.rsaLengthPublicKey = _chunkTSW463FIcjs.rsaLengthPublicKey; exports.rsaLengthRsaPublicKey = _chunkTSW463FIcjs.rsaLengthRsaPublicKey; exports.split_der = _chunkTSW463FIcjs.split_der; exports.toPem = _chunkTSW463FIcjs.toPem; exports.toPem2 = _chunkTSW463FIcjs.toPem2; exports.verifyCertificateChain = _chunkTSW463FIcjs.verifyCertificateChain; exports.verifyCertificateOrClrSignature = _chunkTSW463FIcjs.verifyCertificateOrClrSignature; exports.verifyCertificateRevocationListSignature = _chunkTSW463FIcjs.verifyCertificateRevocationListSignature; exports.verifyCertificateSignature = _chunkTSW463FIcjs.verifyCertificateSignature; exports.verifyChunkSignature = _chunkTSW463FIcjs.verifyChunkSignature; exports.verifyChunkSignatureWithDerivedKeys = _chunkTSW463FIcjs.verifyChunkSignatureWithDerivedKeys; exports.verifyCrlIssuedByCertificate = _chunkTSW463FIcjs.verifyCrlIssuedByCertificate; exports.verifyMessageChunkSignature = _chunkTSW463FIcjs.verifyMessageChunkSignature; exports.verify_certificate_der_structure = _chunkTSW463FIcjs.verify_certificate_der_structure;
|
|
155
159
|
//# sourceMappingURL=index_web.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/node-opcua-crypto/node-opcua-crypto/packages/node-opcua-crypto/dist/source/index_web.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/node-opcua-crypto/node-opcua-crypto/packages/node-opcua-crypto/dist/source/index_web.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,k6KAAC","file":"/home/runner/work/node-opcua-crypto/node-opcua-crypto/packages/node-opcua-crypto/dist/source/index_web.cjs"}
|
|
@@ -196,6 +196,7 @@ interface CertificateInternals {
|
|
|
196
196
|
signatureAlgorithm: AlgorithmIdentifier;
|
|
197
197
|
signatureValue: SignatureValue;
|
|
198
198
|
}
|
|
199
|
+
declare function clearExploreCertificateCache(): void;
|
|
199
200
|
/**
|
|
200
201
|
* explore a certificate structure
|
|
201
202
|
* @param certificate
|
|
@@ -209,6 +210,14 @@ declare function exploreCertificate(certificate: Certificate): CertificateIntern
|
|
|
209
210
|
* @returns an array of Der , each element of the array is one certificate of the chain
|
|
210
211
|
*/
|
|
211
212
|
declare function split_der(certificateChain: Certificate): Certificate[];
|
|
213
|
+
/**
|
|
214
|
+
* @method verify_certificate_der_structure
|
|
215
|
+
* Verify that a certificate or certificate chain is structurally well-formed DER.
|
|
216
|
+
* Ensures the blocks parse correctly and the length exactly matches the buffer length.
|
|
217
|
+
* @param cert the DER certificate or chain to verify
|
|
218
|
+
* @throws {Error} if the structure is invalid or truncated
|
|
219
|
+
*/
|
|
220
|
+
declare function verify_certificate_der_structure(cert: Certificate): void;
|
|
212
221
|
/**
|
|
213
222
|
* @method combine_der
|
|
214
223
|
* combine an array of certificates into a single blob
|
|
@@ -574,4 +583,4 @@ declare const asn1: {
|
|
|
574
583
|
readSignatureValueBin: typeof readSignatureValueBin;
|
|
575
584
|
};
|
|
576
585
|
|
|
577
|
-
export { type AttributeTypeAndValue, type AuthorityKeyIdentifier, type BasicConstraints, Certificate, type CertificateExtension, type CertificateInfo, type CertificateInternals, CertificatePEM, CertificatePurpose, CertificateRevocationList, type CertificateRevocationListInfo, type CertificateSerialNumber, type CertificateSigningRequestInfo, type ComputeDerivedKeysOptions, type CreateSelfSignCertificateOptions, DER, type DERContentType, type DerivedKeys, type DirectoryName, type ExtensionRequest, type Extensions, KeyObject, type Name, Nonce, PEM, PaddingAlgorithm, PrivateKey, type PrivateKeyInternals, PrivateKeyPEM, PublicKey, type PublicKeyLength, PublicKeyPEM, RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING, type RevokedCertificate, Signature, Subject, type SubjectAltName, type SubjectOptions, type SubjectPublicKey, type SubjectPublicKeyInfo, type TBSCertList, type TbsCertificate, type Validity, type VerifyChunkSignatureOptions, type VerifyMessageChunkSignatureOptions, type Version, type X509ExtKeyUsage, type X509KeyUsage, type _VerifyStatus, _coercePrivateKey, asn1, certificateMatchesPrivateKey, coerceCertificate, coerceCertificatePem, coercePEMorDerToPrivateKey, coercePrivateKeyPem, coercePublicKeyPem, coerceRsaPublicKeyPem, combine_der, computeDerivedKeys, computePaddingFooter, convertPEMtoDER, createCertificateSigningRequest, createSelfSignedCertificate, decryptBufferWithDerivedKeys, derToPrivateKey, encryptBufferWithDerivedKeys, exploreAsn1, exploreCertificate, exploreCertificateInfo, exploreCertificateRevocationList, exploreCertificateSigningRequest, explorePrivateKey, extractPublicKeyFromCertificate, extractPublicKeyFromCertificateSync, generateKeyPair, generatePrivateKey, hexDump, identifyDERContent, identifyPemType, isCrlIssuedByCertificate, makeMessageChunkSignature, makeMessageChunkSignatureWithDerivedKeys, makePrivateKeyFromPem, makePrivateKeyThumbPrint, makePseudoRandomBuffer, makeSHA1Thumbprint, pemToPrivateKey, privateDecrypt, privateDecrypt_long, privateDecrypt_native, privateKeyToPEM, publicEncrypt, publicEncrypt_long, publicEncrypt_native, publicKeyAndPrivateKeyMatches, readCertificationRequestInfo, readExtension, readNameForCrl, readTbsCertificate, reduceLength, removePadding, removeTrailingLF, rsaLengthPrivateKey, rsaLengthPublicKey, rsaLengthRsaPublicKey, split_der, toPem, toPem2, verifyCertificateChain, verifyCertificateOrClrSignature, verifyCertificateRevocationListSignature, verifyCertificateSignature, verifyChunkSignature, verifyChunkSignatureWithDerivedKeys, verifyCrlIssuedByCertificate, verifyMessageChunkSignature };
|
|
586
|
+
export { type AttributeTypeAndValue, type AuthorityKeyIdentifier, type BasicConstraints, Certificate, type CertificateExtension, type CertificateInfo, type CertificateInternals, CertificatePEM, CertificatePurpose, CertificateRevocationList, type CertificateRevocationListInfo, type CertificateSerialNumber, type CertificateSigningRequestInfo, type ComputeDerivedKeysOptions, type CreateSelfSignCertificateOptions, DER, type DERContentType, type DerivedKeys, type DirectoryName, type ExtensionRequest, type Extensions, KeyObject, type Name, Nonce, PEM, PaddingAlgorithm, PrivateKey, type PrivateKeyInternals, PrivateKeyPEM, PublicKey, type PublicKeyLength, PublicKeyPEM, RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING, type RevokedCertificate, Signature, Subject, type SubjectAltName, type SubjectOptions, type SubjectPublicKey, type SubjectPublicKeyInfo, type TBSCertList, type TbsCertificate, type Validity, type VerifyChunkSignatureOptions, type VerifyMessageChunkSignatureOptions, type Version, type X509ExtKeyUsage, type X509KeyUsage, type _VerifyStatus, _coercePrivateKey, asn1, certificateMatchesPrivateKey, clearExploreCertificateCache, coerceCertificate, coerceCertificatePem, coercePEMorDerToPrivateKey, coercePrivateKeyPem, coercePublicKeyPem, coerceRsaPublicKeyPem, combine_der, computeDerivedKeys, computePaddingFooter, convertPEMtoDER, createCertificateSigningRequest, createSelfSignedCertificate, decryptBufferWithDerivedKeys, derToPrivateKey, encryptBufferWithDerivedKeys, exploreAsn1, exploreCertificate, exploreCertificateInfo, exploreCertificateRevocationList, exploreCertificateSigningRequest, explorePrivateKey, extractPublicKeyFromCertificate, extractPublicKeyFromCertificateSync, generateKeyPair, generatePrivateKey, hexDump, identifyDERContent, identifyPemType, isCrlIssuedByCertificate, makeMessageChunkSignature, makeMessageChunkSignatureWithDerivedKeys, makePrivateKeyFromPem, makePrivateKeyThumbPrint, makePseudoRandomBuffer, makeSHA1Thumbprint, pemToPrivateKey, privateDecrypt, privateDecrypt_long, privateDecrypt_native, privateKeyToPEM, publicEncrypt, publicEncrypt_long, publicEncrypt_native, publicKeyAndPrivateKeyMatches, readCertificationRequestInfo, readExtension, readNameForCrl, readTbsCertificate, reduceLength, removePadding, removeTrailingLF, rsaLengthPrivateKey, rsaLengthPublicKey, rsaLengthRsaPublicKey, split_der, toPem, toPem2, verifyCertificateChain, verifyCertificateOrClrSignature, verifyCertificateRevocationListSignature, verifyCertificateSignature, verifyChunkSignature, verifyChunkSignatureWithDerivedKeys, verifyCrlIssuedByCertificate, verifyMessageChunkSignature, verify_certificate_der_structure };
|
|
@@ -196,6 +196,7 @@ interface CertificateInternals {
|
|
|
196
196
|
signatureAlgorithm: AlgorithmIdentifier;
|
|
197
197
|
signatureValue: SignatureValue;
|
|
198
198
|
}
|
|
199
|
+
declare function clearExploreCertificateCache(): void;
|
|
199
200
|
/**
|
|
200
201
|
* explore a certificate structure
|
|
201
202
|
* @param certificate
|
|
@@ -209,6 +210,14 @@ declare function exploreCertificate(certificate: Certificate): CertificateIntern
|
|
|
209
210
|
* @returns an array of Der , each element of the array is one certificate of the chain
|
|
210
211
|
*/
|
|
211
212
|
declare function split_der(certificateChain: Certificate): Certificate[];
|
|
213
|
+
/**
|
|
214
|
+
* @method verify_certificate_der_structure
|
|
215
|
+
* Verify that a certificate or certificate chain is structurally well-formed DER.
|
|
216
|
+
* Ensures the blocks parse correctly and the length exactly matches the buffer length.
|
|
217
|
+
* @param cert the DER certificate or chain to verify
|
|
218
|
+
* @throws {Error} if the structure is invalid or truncated
|
|
219
|
+
*/
|
|
220
|
+
declare function verify_certificate_der_structure(cert: Certificate): void;
|
|
212
221
|
/**
|
|
213
222
|
* @method combine_der
|
|
214
223
|
* combine an array of certificates into a single blob
|
|
@@ -574,4 +583,4 @@ declare const asn1: {
|
|
|
574
583
|
readSignatureValueBin: typeof readSignatureValueBin;
|
|
575
584
|
};
|
|
576
585
|
|
|
577
|
-
export { type AttributeTypeAndValue, type AuthorityKeyIdentifier, type BasicConstraints, Certificate, type CertificateExtension, type CertificateInfo, type CertificateInternals, CertificatePEM, CertificatePurpose, CertificateRevocationList, type CertificateRevocationListInfo, type CertificateSerialNumber, type CertificateSigningRequestInfo, type ComputeDerivedKeysOptions, type CreateSelfSignCertificateOptions, DER, type DERContentType, type DerivedKeys, type DirectoryName, type ExtensionRequest, type Extensions, KeyObject, type Name, Nonce, PEM, PaddingAlgorithm, PrivateKey, type PrivateKeyInternals, PrivateKeyPEM, PublicKey, type PublicKeyLength, PublicKeyPEM, RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING, type RevokedCertificate, Signature, Subject, type SubjectAltName, type SubjectOptions, type SubjectPublicKey, type SubjectPublicKeyInfo, type TBSCertList, type TbsCertificate, type Validity, type VerifyChunkSignatureOptions, type VerifyMessageChunkSignatureOptions, type Version, type X509ExtKeyUsage, type X509KeyUsage, type _VerifyStatus, _coercePrivateKey, asn1, certificateMatchesPrivateKey, coerceCertificate, coerceCertificatePem, coercePEMorDerToPrivateKey, coercePrivateKeyPem, coercePublicKeyPem, coerceRsaPublicKeyPem, combine_der, computeDerivedKeys, computePaddingFooter, convertPEMtoDER, createCertificateSigningRequest, createSelfSignedCertificate, decryptBufferWithDerivedKeys, derToPrivateKey, encryptBufferWithDerivedKeys, exploreAsn1, exploreCertificate, exploreCertificateInfo, exploreCertificateRevocationList, exploreCertificateSigningRequest, explorePrivateKey, extractPublicKeyFromCertificate, extractPublicKeyFromCertificateSync, generateKeyPair, generatePrivateKey, hexDump, identifyDERContent, identifyPemType, isCrlIssuedByCertificate, makeMessageChunkSignature, makeMessageChunkSignatureWithDerivedKeys, makePrivateKeyFromPem, makePrivateKeyThumbPrint, makePseudoRandomBuffer, makeSHA1Thumbprint, pemToPrivateKey, privateDecrypt, privateDecrypt_long, privateDecrypt_native, privateKeyToPEM, publicEncrypt, publicEncrypt_long, publicEncrypt_native, publicKeyAndPrivateKeyMatches, readCertificationRequestInfo, readExtension, readNameForCrl, readTbsCertificate, reduceLength, removePadding, removeTrailingLF, rsaLengthPrivateKey, rsaLengthPublicKey, rsaLengthRsaPublicKey, split_der, toPem, toPem2, verifyCertificateChain, verifyCertificateOrClrSignature, verifyCertificateRevocationListSignature, verifyCertificateSignature, verifyChunkSignature, verifyChunkSignatureWithDerivedKeys, verifyCrlIssuedByCertificate, verifyMessageChunkSignature };
|
|
586
|
+
export { type AttributeTypeAndValue, type AuthorityKeyIdentifier, type BasicConstraints, Certificate, type CertificateExtension, type CertificateInfo, type CertificateInternals, CertificatePEM, CertificatePurpose, CertificateRevocationList, type CertificateRevocationListInfo, type CertificateSerialNumber, type CertificateSigningRequestInfo, type ComputeDerivedKeysOptions, type CreateSelfSignCertificateOptions, DER, type DERContentType, type DerivedKeys, type DirectoryName, type ExtensionRequest, type Extensions, KeyObject, type Name, Nonce, PEM, PaddingAlgorithm, PrivateKey, type PrivateKeyInternals, PrivateKeyPEM, PublicKey, type PublicKeyLength, PublicKeyPEM, RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING, type RevokedCertificate, Signature, Subject, type SubjectAltName, type SubjectOptions, type SubjectPublicKey, type SubjectPublicKeyInfo, type TBSCertList, type TbsCertificate, type Validity, type VerifyChunkSignatureOptions, type VerifyMessageChunkSignatureOptions, type Version, type X509ExtKeyUsage, type X509KeyUsage, type _VerifyStatus, _coercePrivateKey, asn1, certificateMatchesPrivateKey, clearExploreCertificateCache, coerceCertificate, coerceCertificatePem, coercePEMorDerToPrivateKey, coercePrivateKeyPem, coercePublicKeyPem, coerceRsaPublicKeyPem, combine_der, computeDerivedKeys, computePaddingFooter, convertPEMtoDER, createCertificateSigningRequest, createSelfSignedCertificate, decryptBufferWithDerivedKeys, derToPrivateKey, encryptBufferWithDerivedKeys, exploreAsn1, exploreCertificate, exploreCertificateInfo, exploreCertificateRevocationList, exploreCertificateSigningRequest, explorePrivateKey, extractPublicKeyFromCertificate, extractPublicKeyFromCertificateSync, generateKeyPair, generatePrivateKey, hexDump, identifyDERContent, identifyPemType, isCrlIssuedByCertificate, makeMessageChunkSignature, makeMessageChunkSignatureWithDerivedKeys, makePrivateKeyFromPem, makePrivateKeyThumbPrint, makePseudoRandomBuffer, makeSHA1Thumbprint, pemToPrivateKey, privateDecrypt, privateDecrypt_long, privateDecrypt_native, privateKeyToPEM, publicEncrypt, publicEncrypt_long, publicEncrypt_native, publicKeyAndPrivateKeyMatches, readCertificationRequestInfo, readExtension, readNameForCrl, readTbsCertificate, reduceLength, removePadding, removeTrailingLF, rsaLengthPrivateKey, rsaLengthPublicKey, rsaLengthRsaPublicKey, split_der, toPem, toPem2, verifyCertificateChain, verifyCertificateOrClrSignature, verifyCertificateRevocationListSignature, verifyCertificateSignature, verifyChunkSignature, verifyChunkSignatureWithDerivedKeys, verifyCrlIssuedByCertificate, verifyMessageChunkSignature, verify_certificate_der_structure };
|
package/dist/source/index_web.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
_coercePrivateKey,
|
|
8
8
|
asn1,
|
|
9
9
|
certificateMatchesPrivateKey,
|
|
10
|
+
clearExploreCertificateCache,
|
|
10
11
|
coerceCertificate,
|
|
11
12
|
coerceCertificatePem,
|
|
12
13
|
coercePEMorDerToPrivateKey,
|
|
@@ -73,8 +74,9 @@ import {
|
|
|
73
74
|
verifyChunkSignature,
|
|
74
75
|
verifyChunkSignatureWithDerivedKeys,
|
|
75
76
|
verifyCrlIssuedByCertificate,
|
|
76
|
-
verifyMessageChunkSignature
|
|
77
|
-
|
|
77
|
+
verifyMessageChunkSignature,
|
|
78
|
+
verify_certificate_der_structure
|
|
79
|
+
} from "../chunk-ODR4HUB7.js";
|
|
78
80
|
export {
|
|
79
81
|
CertificatePurpose,
|
|
80
82
|
PaddingAlgorithm,
|
|
@@ -84,6 +86,7 @@ export {
|
|
|
84
86
|
_coercePrivateKey,
|
|
85
87
|
asn1,
|
|
86
88
|
certificateMatchesPrivateKey,
|
|
89
|
+
clearExploreCertificateCache,
|
|
87
90
|
coerceCertificate,
|
|
88
91
|
coerceCertificatePem,
|
|
89
92
|
coercePEMorDerToPrivateKey,
|
|
@@ -150,6 +153,7 @@ export {
|
|
|
150
153
|
verifyChunkSignature,
|
|
151
154
|
verifyChunkSignatureWithDerivedKeys,
|
|
152
155
|
verifyCrlIssuedByCertificate,
|
|
153
|
-
verifyMessageChunkSignature
|
|
156
|
+
verifyMessageChunkSignature,
|
|
157
|
+
verify_certificate_der_structure
|
|
154
158
|
};
|
|
155
159
|
//# sourceMappingURL=index_web.js.map
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
31
|
-
require('../chunk-
|
|
30
|
+
var _chunkIKQT3ICScjs = require('../chunk-IKQT3ICS.cjs');
|
|
31
|
+
require('../chunk-TSW463FI.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -58,5 +58,5 @@ require('../chunk-3KSBDOQT.cjs');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.certificatesToDer =
|
|
61
|
+
exports.certificatesToDer = _chunkIKQT3ICScjs.certificatesToDer; exports.certificatesToPem = _chunkIKQT3ICScjs.certificatesToPem; exports.generatePrivateKeyFile = _chunkIKQT3ICScjs.generatePrivateKeyFile; exports.generatePrivateKeyFileAlternate = _chunkIKQT3ICScjs.generatePrivateKeyFileAlternate; exports.getCertificateStore = _chunkIKQT3ICScjs.getCertificateStore; exports.readCertificate = _chunkIKQT3ICScjs.readCertificate; exports.readCertificateAsync = _chunkIKQT3ICScjs.readCertificateAsync; exports.readCertificateChain = _chunkIKQT3ICScjs.readCertificateChain; exports.readCertificateChainAsync = _chunkIKQT3ICScjs.readCertificateChainAsync; exports.readCertificatePEM = _chunkIKQT3ICScjs.readCertificatePEM; exports.readCertificatePEMAsync = _chunkIKQT3ICScjs.readCertificatePEMAsync; exports.readCertificateRevocationList = _chunkIKQT3ICScjs.readCertificateRevocationList; exports.readCertificateSigningRequest = _chunkIKQT3ICScjs.readCertificateSigningRequest; exports.readPrivateKey = _chunkIKQT3ICScjs.readPrivateKey; exports.readPrivateKeyAsync = _chunkIKQT3ICScjs.readPrivateKeyAsync; exports.readPrivateKeyPEM = _chunkIKQT3ICScjs.readPrivateKeyPEM; exports.readPrivateKeyPEMAsync = _chunkIKQT3ICScjs.readPrivateKeyPEMAsync; exports.readPrivateRsaKey = _chunkIKQT3ICScjs.readPrivateRsaKey; exports.readPublicKey = _chunkIKQT3ICScjs.readPublicKey; exports.readPublicKeyAsync = _chunkIKQT3ICScjs.readPublicKeyAsync; exports.readPublicKeyPEM = _chunkIKQT3ICScjs.readPublicKeyPEM; exports.readPublicKeyPEMAsync = _chunkIKQT3ICScjs.readPublicKeyPEMAsync; exports.readPublicRsaKey = _chunkIKQT3ICScjs.readPublicRsaKey; exports.setCertificateStore = _chunkIKQT3ICScjs.setCertificateStore; exports.writeCertificateChain = _chunkIKQT3ICScjs.writeCertificateChain; exports.writeCertificateChainAsync = _chunkIKQT3ICScjs.writeCertificateChainAsync; exports.writeCertificateChainDer = _chunkIKQT3ICScjs.writeCertificateChainDer; exports.writeCertificateChainDerAsync = _chunkIKQT3ICScjs.writeCertificateChainDerAsync;
|
|
62
62
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
writeCertificateChainAsync,
|
|
28
28
|
writeCertificateChainDer,
|
|
29
29
|
writeCertificateChainDerAsync
|
|
30
|
-
} from "../chunk-
|
|
31
|
-
import "../chunk-
|
|
30
|
+
} from "../chunk-UEEZA3YS.js";
|
|
31
|
+
import "../chunk-ODR4HUB7.js";
|
|
32
32
|
export {
|
|
33
33
|
certificatesToDer,
|
|
34
34
|
certificatesToPem,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-crypto",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Crypto tools for Node-OPCUA",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"node": ">=18.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@types/node": "^24.
|
|
60
|
+
"@types/node": "^24.12.0",
|
|
61
61
|
"@types/sshpk": "^1.17.4",
|
|
62
62
|
"assert": "^2.1.0",
|
|
63
63
|
"buffer": "^6.0.3",
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
"crypto-browserify": "^3.12.1",
|
|
66
66
|
"events": "^3.3.0",
|
|
67
67
|
"stream-browserify": "^3.0.0",
|
|
68
|
-
"string_decoder": "^1.
|
|
68
|
+
"string_decoder": "^1.3.0",
|
|
69
69
|
"util": "^0.12.5",
|
|
70
70
|
"vm-browserify": "^1.1.2"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@peculiar/webcrypto": "^1.5.0",
|
|
74
|
-
"@peculiar/x509": "^
|
|
74
|
+
"@peculiar/x509": "^2.0.0",
|
|
75
75
|
"sshpk": "^1.18.0"
|
|
76
76
|
},
|
|
77
77
|
"repository": {
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"LICENSE",
|
|
87
87
|
"README.md"
|
|
88
88
|
],
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "ddf7780fd57e6babfd9df320c8d50a8d2f9a8a6a"
|
|
90
90
|
}
|