@vchasno/signer 1.0.0

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/.dockerignore ADDED
@@ -0,0 +1,11 @@
1
+ # dependencies
2
+ /node_modules
3
+
4
+ # testing
5
+ /coverage
6
+
7
+ # production
8
+ /lib
9
+
10
+ # misc
11
+ .DS_Store
package/CHANGELOG.md ADDED
@@ -0,0 +1,580 @@
1
+ 0.18.9 -> 1.0.0
2
+ ==================
3
+
4
+ - rename npm package to @vchasno/signer
5
+
6
+ 0.18.8 -> 0.18.9
7
+ ==================
8
+
9
+ - Update certificates (Wed, 10 Dec 2025 16:57:37 GMT)
10
+
11
+ 0.18.7 -> 0.18.8
12
+ ==================
13
+
14
+ - Update certificates (Wed, 12 Nov 2025 09:05:31 GMT)
15
+
16
+ 0.18.6 -> 0.18.7
17
+ ==================
18
+
19
+ - Update certificates (Fri, 15 Aug 2025 22:09:13 GMT)
20
+
21
+ 0.18.5 -> 0.18.6
22
+ ==================
23
+
24
+ - Update certificates (Thu, 17 Jul 2025 08:36:21 GMT)
25
+
26
+ 0.18.4 -> 0.18.5
27
+ ==================
28
+
29
+ - Update certificates (Fri, 04 Jul 2025 13:55:54 GMT)
30
+
31
+ 0.18.3 -> 0.18.4
32
+ ==================
33
+
34
+ - Update certificates (Mon, 23 Jun 2025 15:37:23 GMT)
35
+
36
+ 0.18.2 -> 0.18.3
37
+ ==================
38
+
39
+ - Update certificates (Wed, 18 Jun 2025 15:29:28 GMT)
40
+
41
+ 0.18.1 -> 0.18.2
42
+ ==================
43
+
44
+ - Fix ERROR_TEXT_NEED_POWER_CERTIFICATE typo
45
+
46
+ 0.18.0 -> 0.18.1
47
+ ==================
48
+
49
+ - Update certificates (05 May 2025)
50
+
51
+ 0.17.51 -> 0.18.0
52
+ ==================
53
+
54
+ - KeyInfo.drfo field
55
+
56
+ 0.17.50 -> 0.17.51
57
+ ==================
58
+
59
+ - Update certificates (Thu, 20 Mar 2025 15:27:47 GMT)
60
+
61
+ 0.17.49 -> 0.17.50
62
+ ==================
63
+
64
+ - Update certificates (Mon, 10 Mar 2025 09:02:47 GMT)
65
+
66
+ 0.17.48 -> 0.17.49
67
+ ==================
68
+
69
+ - Update certificates (Wed, 26 Feb 2025 13:23:03 GMT)
70
+
71
+ 0.17.47 -> 0.17.48
72
+ ==================
73
+
74
+ - Add type definitions for "getRootCertificates" method
75
+
76
+ 0.17.46 -> 0.17.47
77
+ ==================
78
+
79
+ - Update certificates (Wed, 12 Feb 2025 16:46:46 GMT)
80
+
81
+ 0.17.45 -> 0.17.46
82
+ ==================
83
+
84
+ - Update certificates (Thu, 30 Jan 2025 07:54:35 GMT)
85
+
86
+ 0.17.44 -> 0.17.45
87
+ ==================
88
+
89
+ - Update certificates (Tue, 14 Jan 2025 09:12:15 GMT)
90
+
91
+ 0.17.43 -> 0.17.44
92
+ ==================
93
+
94
+ - Update certificates (Wed, 08 Jan 2025 17:07:34 GMT)
95
+
96
+ 0.17.42 -> 0.17.43
97
+ ==================
98
+
99
+ - Update certificates (Tue, 05 Nov 2024 09:32:34 GMT)
100
+
101
+ 0.17.41 -> 0.17.42
102
+ ==================
103
+
104
+ - Update certificates (Wed, 21 Aug 2024 09:06:23 GMT)
105
+
106
+ 0.17.40 -> 0.17.41
107
+ ==================
108
+
109
+ - Update certificates (Fri, 26 Jul 2024 14:18:28 GMT)
110
+
111
+ 0.17.39 -> 0.17.40
112
+ ==================
113
+
114
+ - Add generatePrivateKeyExt method
115
+
116
+ 0.17.37 -> 0.17.38
117
+ ==================
118
+
119
+ - Update certificates (Thu, 02 May 2024 11:55:41 GMT)
120
+
121
+ 0.17.36 -> 0.17.37
122
+ ==================
123
+
124
+ - Update certificates (Thu, 02 May 2024 07:32:27 GMT)
125
+
126
+ 0.17.35 -> 0.17.36
127
+ ==================
128
+
129
+ - Update certificates (Wed, 10 Apr 2024 09:50:56 GMT)
130
+
131
+ 0.17.34 -> 0.17.35
132
+ ==================
133
+
134
+ - Update certificates (Tue, 26 Mar 2024 20:50:38 GMT)
135
+
136
+ 0.17.33 -> 0.17.34
137
+ ==================
138
+
139
+ - Update certificates (Fri, 22 Mar 2024 08:34:11 GMT)
140
+
141
+ 0.17.32 -> 0.17.33
142
+ ==================
143
+
144
+ - Update CAs.json (28/02/2024 18:40)
145
+
146
+ 0.17.31 -> 0.17.32
147
+ ==================
148
+
149
+ - Update certificates (Thu, 25 Jan 2024 07:57:04 GMT)
150
+
151
+ 0.17.30 -> 0.17.31
152
+ ==================
153
+
154
+ - Update certificates (Mon, 22 Jan 2024 13:36:53 GMT)
155
+
156
+ 0.17.29 -> 0.17.30
157
+ ==================
158
+
159
+ - Update certificates (Fri, 05 Jan 2024 12:55:02 GMT)
160
+
161
+ 0.17.28 -> 0.17.29
162
+ ==================
163
+
164
+ - Update certificates (Fri, 15 Dec 2023 09:31:18 GMT)
165
+
166
+ 0.17.27 -> 0.17.28
167
+ ==================
168
+
169
+ - Update certificates (Tue, 05 Dec 2023 09:21:57 GMT)
170
+
171
+ 0.17.26 -> 0.17.27
172
+ ==================
173
+
174
+ - Update certificates (Fri, 24 Nov 2023 06:41:02 GMT)
175
+
176
+ 0.17.25 -> 0.17.26
177
+ ==================
178
+
179
+ - Update certificates (Wed, 08 Nov 2023 10:31:42 GMT)
180
+
181
+ 0.17.24 -> 0.17.25
182
+ ==================
183
+
184
+ - Update certificates (Wed, 25 Oct 2023 12:52:02 GMT)
185
+
186
+ 0.17.23 -> 0.17.24
187
+ ==================
188
+
189
+ - Update certificates (Tue, 26 Sep 2023 09:15:25 GMT)
190
+
191
+ 0.17.22 -> 0.17.23
192
+ ==================
193
+
194
+ - Update certificates (Fri, 15 Sep 2023 13:38:06 GMT)
195
+
196
+ 0.17.21 -> 0.17.22
197
+ ==================
198
+
199
+ - Update certificates (Wed, 13 Sep 2023 11:08:06 GMT)
200
+
201
+ 0.17.20 -> 0.17.21
202
+ ==================
203
+
204
+ - Update certificates (Fri, 11 Aug 2023 09:53:03 GMT)
205
+
206
+ 0.17.19 -> 0.17.20
207
+ ==================
208
+
209
+ - Update certificates (13/07/2023 16:51)
210
+
211
+ 0.17.18 -> 0.17.19
212
+ ==================
213
+
214
+ - Update certificates (01/07/2023 11:36)
215
+
216
+ 0.17.17 -> 0.17.18
217
+ ==================
218
+
219
+ - Update certificates (23/06/2023 14:11)
220
+
221
+ 0.17.16 -> 0.17.17
222
+ ==================
223
+
224
+ - Update certificates (19/05/2023 14:48)
225
+
226
+ 0.17.15 -> 0.17.16
227
+ ==================
228
+
229
+ - Update certificates (01/05/2023 18:07)
230
+
231
+ 0.17.14 -> 0.17.15
232
+ ==================
233
+
234
+ - Update certificates (08/03/2023 11:28)
235
+
236
+ 0.17.13 -> 0.17.14
237
+ ==================
238
+
239
+ - Update certificates
240
+
241
+ 0.17.12 -> 0.17.13
242
+ ==================
243
+
244
+ - Update certificates (28/02/2023 09:56)
245
+
246
+ 0.17.8 -> 0.17.9
247
+ ==================
248
+
249
+ - Add libraryVersion to VchasnoSignerConfig
250
+
251
+ 0.17.7 -> 0.17.8
252
+ ==================
253
+
254
+ - Add runtimeParameters to VchasnoSignerConfig
255
+
256
+ 0.17.6 -> 0.17.7
257
+ ==================
258
+
259
+ - Update certificates (EUSignCP-JS-20221212)
260
+
261
+ 0.17.5 -> 0.17.6
262
+ ==================
263
+
264
+ - Update certificates
265
+
266
+ 0.17.4 -> 0.17.5
267
+ ==================
268
+
269
+ - Update certificates
270
+
271
+ 0.17.3 -> 0.17.4
272
+ ==================
273
+
274
+ - Update certificates
275
+
276
+ 0.17.2 -> 0.17.3
277
+ ==================
278
+
279
+ - Update certificates
280
+
281
+ 0.17.0 -> 0.17.2
282
+ ==================
283
+
284
+ - Add readPKKeyCtxWithCMP method
285
+
286
+ 0.17.0 -> 0.17.1
287
+ ==================
288
+
289
+ - Sort caServers by popularity
290
+ - Update certificates
291
+
292
+ 0.16.0 -> 0.17.0
293
+ ==================
294
+
295
+ - Add test certificates and `enableTestCertificates` setting
296
+
297
+ 0.15.8 -> 0.16.0
298
+ ==================
299
+
300
+ - Add CertificateInfo state/locality fields
301
+
302
+ 0.15.7 -> 0.15.8
303
+ ==================
304
+
305
+ - Update certificates
306
+
307
+ 0.15.6 -> 0.15.7
308
+ ==================
309
+
310
+ - Update certificates
311
+
312
+ 0.15.5 -> 0.15.6
313
+ ==================
314
+
315
+ - Return sign data from verifySignInternal method (optional)
316
+
317
+ 0.15.4 -> 0.15.5
318
+ ==================
319
+
320
+ - Update certificates
321
+
322
+ 0.15.3 -> 0.15.4
323
+ ==================
324
+
325
+ - Update certificates
326
+
327
+ 0.15.2 -> 0.15.3
328
+ ==================
329
+
330
+ - Add hashData function
331
+
332
+ 0.15.1 -> 0.15.2
333
+ ==================
334
+
335
+ - Add Vchasno certificates
336
+
337
+ 0.15.0 -> 0.15.1
338
+ ==================
339
+
340
+ - Update certificates
341
+
342
+ 0.14.1 -> 0.15.0
343
+ ==================
344
+
345
+ - Add sign type option to init config
346
+
347
+ 0.14.0 -> 0.14.1
348
+ ==================
349
+
350
+ - Add stamp option in generatePrivateKey method
351
+
352
+ 0.13.3 -> 0.14.0
353
+ ==================
354
+
355
+ - Add encryption session
356
+
357
+ 0.13.2 -> 0.13.3
358
+ ==================
359
+
360
+ - Update certificates
361
+
362
+ 0.13.1 -> 0.13.2
363
+ ==================
364
+
365
+ - Update certificates
366
+
367
+ 0.13.0 -> 0.13.1
368
+ ==================
369
+
370
+ - Fix generated key data type
371
+
372
+ 0.12.0 -> 0.13.0
373
+ ==================
374
+
375
+ - Add generatePrivateKey method
376
+
377
+ 0.11.3 -> 0.12.0
378
+ ==================
379
+
380
+ - Add endelopDataCtx, developDataCtx
381
+
382
+ 0.11.2 -> 0.11.3
383
+ ==================
384
+
385
+ - Update certificates
386
+
387
+ 0.11.1 -> 0.11.2
388
+ ==================
389
+
390
+ - Update certificates
391
+
392
+ 0.11.0 -> 0.11.1
393
+ ==================
394
+
395
+ - Update certificates
396
+
397
+ 0.10.4 -> 0.11.0
398
+ ==================
399
+
400
+ - Add update certificates command
401
+
402
+ 0.10.3 -> 0.10.4
403
+ ==================
404
+
405
+ - add publicKeyID to CertificateInfo
406
+
407
+ 0.10.2 -> 0.10.3
408
+ ==================
409
+
410
+ - Fix unprotectReceipt method
411
+
412
+ 0.10.1 -> 0.10.2
413
+ ==================
414
+
415
+ - Fix protectReport method
416
+
417
+ 0.10.0 -> 0.10.1
418
+ ==================
419
+
420
+ - Add base64 utils
421
+
422
+ 0.9.2 -> 0.10.0
423
+ ==================
424
+
425
+ - Add protectReport method
426
+
427
+ 0.9.0 -> 0.9.2
428
+ ==================
429
+
430
+ - Update certificates
431
+
432
+ 0.8.4 -> 0.9.0 (2020-05-21)
433
+ ==================
434
+
435
+ - Allow to sign data internal_appended (doc + .p7s + .p7s + ...)
436
+
437
+ 0.8.3 -> 0.8.4 (2020-04-02)
438
+ ==================
439
+
440
+ - Fix stamp detection bug (when key distribution protocols expire later then stamp certificate)
441
+
442
+ 0.8.2 -> 0.8.3 (2020-04-02)
443
+ ==================
444
+
445
+ - Update certificates
446
+
447
+ 0.8.1 -> 0.8.2 (2020-01-20)
448
+ ==================
449
+
450
+ - Update certificates
451
+
452
+ 0.8.0 -> 0.8.1 (2019-11-11)
453
+ ==================
454
+
455
+ - Rearange CA
456
+
457
+ 0.7.5 -> 0.8.0 (2019-11-11)
458
+ ==================
459
+
460
+ - [FIX] Certificate enumeration
461
+ - [FIX] CI
462
+
463
+ 0.7.0 -> 0.7.5 (2019-09-27)
464
+ ==================
465
+
466
+ - Updated CA certificates
467
+
468
+ 0.6.2 -> 0.7.0 (2019-07-15)
469
+ ==================
470
+
471
+ - Support JKS containers
472
+
473
+ 0.6.1 -> 0.6.2 (2019-06-04)
474
+ ==================
475
+
476
+ - Updated CA certificates
477
+
478
+ 0.6.0 -> 0.6.1 (2019-04-17)
479
+ ==================
480
+
481
+ - Updated CA certificates
482
+
483
+ 0.5.10 -> 0.6.0 (2019-02-21)
484
+ ==================
485
+
486
+ - Allow to sign hash
487
+ - `maxFileSize` is not required
488
+
489
+ 0.5.9 -> 0.5.10 (2019-01-22)
490
+ ==================
491
+
492
+ - Export more utils
493
+
494
+ 0.5.6 -> 0.5.9 (2018-12-12)
495
+ ==================
496
+
497
+ - Updated CA certificates
498
+
499
+ 0.5.5 (2018-10-22)
500
+ ==================
501
+
502
+ - Fix types
503
+
504
+ 0.5.1 -> 0.5.4 (2018-10-22)
505
+ ==================
506
+
507
+ - Allow to specify path to library files
508
+
509
+ 0.5.0 (2018-10-22)
510
+ ==================
511
+
512
+ - Added index.d.ts for TypeScript
513
+
514
+ 0.4.10 -> 0.4.14
515
+ ==================
516
+
517
+ Development purposes
518
+
519
+ 0.4.10 (2018-08-15)
520
+ ==================
521
+
522
+ - Updated caCertificates
523
+
524
+ 0.4.9 (2018-06-19)
525
+ ==================
526
+
527
+ - Attempt to improve error logs
528
+
529
+ 0.4.8 (2018-03-23)
530
+ ==================
531
+
532
+ - Updated CA certificates
533
+ - Updated CA servers
534
+ - Attempt to improve error logs
535
+
536
+ 0.4.7 (2018-03-23)
537
+ ==================
538
+
539
+ - Same as 0.4.6
540
+
541
+ 0.4.6 (2018-03-10)
542
+ ==================
543
+
544
+ - Delete key context by unique identifier instead of key's serial number
545
+
546
+ 0.4.5 (2018-03-07)
547
+ ==================
548
+
549
+ - Updated CA certificates.
550
+
551
+ 0.4.4 (2018-02-19)
552
+ ==================
553
+
554
+ - Updated CA certificates.
555
+ - Changed text for IIT library error with code 65.
556
+
557
+ 0.4.3 (2018-02-05)
558
+ ==================
559
+
560
+ - Better config preparing.
561
+
562
+ 0.4.2 (2018-02-02)
563
+ ==================
564
+
565
+ - Validate data size overlimit.
566
+
567
+ 0.4.1 (2018-01-09)
568
+ ==================
569
+
570
+ - Convert input data to `Uint8Array` type for internal use, because IIT library works only with `Uint8Array` type.
571
+
572
+ 0.4.0 (2018-01-06)
573
+ ==================
574
+
575
+ No changes from `0.4.0-beta.1` release.
576
+
577
+ 0.4.0-beta.1 (2018-01-06)
578
+ =========================
579
+
580
+ - Return ability to sign `Uint8Array` data.
package/Dockerfile ADDED
@@ -0,0 +1,14 @@
1
+ FROM node:14-alpine as base
2
+ WORKDIR /build
3
+
4
+ COPY . ./
5
+ RUN npm install
6
+ RUN npm run prod
7
+
8
+ COPY docker/entrypoint.sh /
9
+ RUN chmod +x /entrypoint.sh
10
+
11
+ ENTRYPOINT [ "/entrypoint.sh" ]
12
+
13
+ FROM base as dev
14
+ RUN apk update && apk add git