@naylence/advanced-security 0.3.1 → 0.3.3
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/browser/index.js +2 -8
- package/dist/browser/index.js.map +1 -1
- package/dist/cjs/naylence/fame/security/cert/internal-ca-service.js +2 -8
- package/dist/cjs/naylence/fame/security/cert/internal-ca-service.js.map +1 -1
- package/dist/esm/naylence/fame/security/cert/internal-ca-service.js +2 -8
- package/dist/esm/naylence/fame/security/cert/internal-ca-service.js.map +1 -1
- package/dist/types/naylence/fame/security/cert/internal-ca-service.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -7395,12 +7395,6 @@ function hexToArrayBuffer(hex) {
|
|
|
7395
7395
|
}
|
|
7396
7396
|
return bytes.buffer;
|
|
7397
7397
|
}
|
|
7398
|
-
function encodeBitString(data) {
|
|
7399
|
-
const input = new Uint8Array(data);
|
|
7400
|
-
const bitString = new Uint8Array(input.length + 1);
|
|
7401
|
-
bitString.set(input, 1);
|
|
7402
|
-
return bitString.buffer;
|
|
7403
|
-
}
|
|
7404
7398
|
async function createEd25519Certificate(options) {
|
|
7405
7399
|
const subtle = await getSubtleCrypto();
|
|
7406
7400
|
await ensureCrypto();
|
|
@@ -7440,7 +7434,7 @@ async function createEd25519Certificate(options) {
|
|
|
7440
7434
|
const certificate = new Certificate({
|
|
7441
7435
|
tbsCertificate,
|
|
7442
7436
|
signatureAlgorithm,
|
|
7443
|
-
signatureValue:
|
|
7437
|
+
signatureValue: signature,
|
|
7444
7438
|
});
|
|
7445
7439
|
certificate.tbsCertificateRaw = tbsDer;
|
|
7446
7440
|
return AsnConvert.serialize(certificate);
|
|
@@ -7739,7 +7733,7 @@ class CASigningService extends CAService {
|
|
|
7739
7733
|
const spiffeId = `spiffe://${spiffeTrustDomain}/nodes/${nodeSid}`;
|
|
7740
7734
|
const extensions = await buildLeafExtensions(publicKey, nodeSid, nodeId, spiffeId, logicalHosts, issuerIdentity.subjectPublicKeyInfo);
|
|
7741
7735
|
const issuerName = issuerIdentity.name;
|
|
7742
|
-
const subjectName =
|
|
7736
|
+
const subjectName = new Name$1([]); // SPIFFE X.509-SVIDs require an empty subject DN
|
|
7743
7737
|
const certDer = await createEd25519Certificate({
|
|
7744
7738
|
subject: subjectName,
|
|
7745
7739
|
issuer: issuerName,
|