@it-enterprise/digital-signature 1.2.6 → 1.2.8
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
CHANGED
package/src/DigitalSignature.js
CHANGED
|
@@ -761,6 +761,11 @@ export default class DigitalSignature {
|
|
|
761
761
|
if (Array.isArray(signInfo)) {
|
|
762
762
|
signInfo = signInfo[signInfo.length - 1];
|
|
763
763
|
}
|
|
764
|
+
var cert = this._readedKey.certificates[0];
|
|
765
|
+
if (cert) {
|
|
766
|
+
signInfo.ownerInfo.certBeginTime = cert.infoEx.certBeginTime;
|
|
767
|
+
signInfo.ownerInfo.certEndTime = cert.infoEx.certEndTime;
|
|
768
|
+
}
|
|
764
769
|
result[i] = {
|
|
765
770
|
Success: true,
|
|
766
771
|
Sign: sign.val || sign,
|
package/src/Models.js
CHANGED
|
@@ -2,7 +2,7 @@ import { EndUserCertificate, EndUserError, EndUserOwnerInfo, EndUserConstants, K
|
|
|
2
2
|
import GlSign from "./GlSign";
|
|
3
3
|
import { downloadData, byteArrayToBase64, base64ToByteArray, signAlgoToHashAlgo, getSupportedSignAlgos } from "./Utils";
|
|
4
4
|
|
|
5
|
-
const LIBRARY_VERSION = "1.3.
|
|
5
|
+
const LIBRARY_VERSION = "1.3.63";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Параметры библиотеки электронной подписи
|
|
@@ -435,7 +435,7 @@ export function getDefaultKSPs() {
|
|
|
435
435
|
const depositsign = new KSPSettings();
|
|
436
436
|
depositsign.id = "depositsign";
|
|
437
437
|
depositsign.name = "DepositSign";
|
|
438
|
-
depositsign.ksp = EndUserConstants.
|
|
438
|
+
depositsign.ksp = EndUserConstants.PB;
|
|
439
439
|
depositsign.address = "https://depositsign.com/api/v1/it-enterprise/sign-server";
|
|
440
440
|
depositsign.directAccess = true;
|
|
441
441
|
depositsign.needQRCode = false;
|
|
@@ -464,9 +464,9 @@ export function getDefaultKSPs() {
|
|
|
464
464
|
const vchasno = new KSPSettings();
|
|
465
465
|
vchasno.id = "vchasno";
|
|
466
466
|
vchasno.name = "Вчасно - хмарний підпис";
|
|
467
|
-
vchasno.ksp = EndUserConstants.
|
|
467
|
+
vchasno.ksp = EndUserConstants.EU_KSP_PB;
|
|
468
468
|
vchasno.address = "https://cs.vchasno.ua/ss/";
|
|
469
|
-
vchasno.directAccess =
|
|
469
|
+
vchasno.directAccess = false;
|
|
470
470
|
vchasno.needQRCode = false;
|
|
471
471
|
|
|
472
472
|
const cloudKey = new KSPSettings();
|