@it-enterprise/digital-signature 1.3.4 → 1.3.6
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/package.json +1 -1
- package/src/DigitalSignature.js +10 -3
- package/src/Models.js +12 -0
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);
|
package/src/Models.js
CHANGED
|
@@ -521,6 +521,17 @@ export function getDefaultKSPs(allowTest) {
|
|
|
521
521
|
vchasno.needQRCode = false;
|
|
522
522
|
vchasno.codeEDRPOU = "41231992";
|
|
523
523
|
|
|
524
|
+
const vchasnoQR = new KSPSettings();
|
|
525
|
+
vchasnoQR.id = "vchasnoQR";
|
|
526
|
+
vchasnoQR.name = "Вчасно - хмарний підпис (QR)";
|
|
527
|
+
vchasnoQR.ksp = EndUserConstants.EU_KSP_PB;
|
|
528
|
+
vchasnoQR.address = "https://cs.vchasno.ua/ss/";
|
|
529
|
+
vchasnoQR.clientIdPrefix = "vchasno_";
|
|
530
|
+
vchasnoQR.confirmationURL = "https://cs.vchasno.ua/rd/";
|
|
531
|
+
vchasnoQR.mobileAppName = "Вчасно.КЕП";
|
|
532
|
+
vchasnoQR.directAccess = false;
|
|
533
|
+
vchasnoQR.needQRCode = true;
|
|
534
|
+
|
|
524
535
|
const cloudKey = new KSPSettings();
|
|
525
536
|
cloudKey.id = "cloudkey";
|
|
526
537
|
cloudKey.name = "ТОВ «ЦСК «Україна» - хмарний підпис CloudKey";
|
|
@@ -593,6 +604,7 @@ export function getDefaultKSPs(allowTest) {
|
|
|
593
604
|
diia,
|
|
594
605
|
smartId,
|
|
595
606
|
vchasno,
|
|
607
|
+
vchasnoQR,
|
|
596
608
|
cloudKey,
|
|
597
609
|
esign,
|
|
598
610
|
smartSignTax,
|