@it-enterprise/digital-signature 1.3.4 → 1.3.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/euscp/euscp.js +7 -7
- package/package.json +1 -1
- package/src/DigitalSignature.js +10 -3
package/package.json
CHANGED
package/src/DigitalSignature.js
CHANGED
|
@@ -208,7 +208,8 @@ export default class DigitalSignature {
|
|
|
208
208
|
"смарт-карта Техноконс. TEllipse3 (PKCS#11)",
|
|
209
209
|
"смарт-карта Техноконс. TEllipse",
|
|
210
210
|
"смарт-карта Техноконс. TEllipse2/3",
|
|
211
|
-
"е.ключ SafeNet iKey (PKCS#11, RSA)"
|
|
211
|
+
"е.ключ SafeNet iKey (PKCS#11, RSA)",
|
|
212
|
+
"е.ключ Aruba Key (PKCS#11, RSA)"
|
|
212
213
|
]
|
|
213
214
|
};
|
|
214
215
|
}
|
|
@@ -310,7 +311,10 @@ export default class DigitalSignature {
|
|
|
310
311
|
}
|
|
311
312
|
|
|
312
313
|
if (Array.isArray(certs)) {
|
|
313
|
-
certs = await Promise.all(certs.map(cert =>
|
|
314
|
+
certs = await Promise.all(certs.map(cert =>
|
|
315
|
+
cert instanceof File || cert instanceof Blob ? readFile(cert) :
|
|
316
|
+
cert instanceof EndUserCertificate ? cert.data :
|
|
317
|
+
cert));
|
|
314
318
|
}
|
|
315
319
|
|
|
316
320
|
try {
|
|
@@ -373,7 +377,10 @@ export default class DigitalSignature {
|
|
|
373
377
|
privateKey = await readFile(privateKey);
|
|
374
378
|
}
|
|
375
379
|
if (Array.isArray(certs)) {
|
|
376
|
-
certs = await Promise.all(certs.map(cert =>
|
|
380
|
+
certs = await Promise.all(certs.map(cert =>
|
|
381
|
+
cert instanceof File || cert instanceof Blob ? readFile(cert) :
|
|
382
|
+
cert instanceof EndUserCertificate ? cert.data :
|
|
383
|
+
cert));
|
|
377
384
|
}
|
|
378
385
|
try {
|
|
379
386
|
const ownerInfo = await this._euSign.ReadPrivateKeyBinary(privateKey, password, certs, this._selectedIssuerCN);
|