forked from vgoma/crypto-pro
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Исправления в соответсвии с приказом ФСБ России (#40)
Внесены изменения с учётом Приказа ФСБ России от 13.04.2021 N 142 "О внесении изменения в приказ ФСБ России от 27 декабря 2011 г. N 796 "Об утверждении Требований к средствам электронной подписи и Требований к средствам удостоверяющего центра" * Добавил чтение полей, перечисленных в приказе ФСБ России от 27 декабря 2011 г. N 796 * Добавил OIDы полей, перечисленных в приказе ФСБ России от 27 декабря 2011 г. N 796 * Расширил варианты названия для полей подписи, в соответствии с рекомендациями ISO/IEC 9594-8:2008 * Выпуск версии 2.3.3
- Loading branch information
Showing
22 changed files
with
345 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export declare const _extractCommonName: (subjectName: string) => string; | ||
export declare const _extractCommonName: (subjectName: string) => string | undefined; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export declare const _extractMeaningfulErrorMessage: (error: Error) => string; | ||
export declare const _extractMeaningfulErrorMessage: (error: Error) => string | null; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export declare const _extractCommonName: (subjectName: string) => string; | ||
export declare const _extractCommonName: (subjectName: string) => string | undefined; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export declare const _extractMeaningfulErrorMessage: (error: Error) => string; | ||
export declare const _extractMeaningfulErrorMessage: (error: Error) => string | null; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
import { TagsTranslations } from './tags-translations'; | ||
|
||
export const ISSUER_TAGS_TRANSLATIONS: TagsTranslations[] = [ | ||
{ possibleNames: ['UnstructuredName'], translation: 'Неструктурированное имя' }, | ||
{ possibleNames: ['CN'], translation: 'Удостоверяющий центр' }, | ||
{ possibleNames: ['C'], translation: 'Страна' }, | ||
{ possibleNames: ['S'], translation: 'Регион' }, | ||
{ possibleNames: ['STREET'], translation: 'Адрес' }, | ||
{ possibleNames: ['O'], translation: 'Компания' }, | ||
{ possibleNames: ['OU'], translation: 'Тип' }, | ||
{ possibleNames: ['T'], translation: 'Должность' }, | ||
{ possibleNames: ['UN', 'UnstructuredName'], translation: 'Неструктурированное имя' }, | ||
{ possibleNames: ['CN', 'commonName'], translation: 'Удостоверяющий центр' }, | ||
{ possibleNames: ['C', 'countryName'], translation: 'Страна' }, | ||
{ possibleNames: ['S', 'ST', 'stateOrProvinceName'], translation: 'Регион' }, | ||
{ possibleNames: ['STREET', 'streetAddress'], translation: 'Адрес' }, | ||
{ possibleNames: ['O', 'organizationName'], translation: 'Компания' }, | ||
{ possibleNames: ['OU', 'organizationalUnitName'], translation: 'Тип' }, | ||
{ possibleNames: ['T', 'TITLE'], translation: 'Должность' }, | ||
{ possibleNames: ['ОГРН', 'OGRN'], translation: 'ОГРН' }, | ||
{ possibleNames: ['ОГРНИП', 'OGRNIP'], translation: 'ОГРНИП' }, | ||
{ possibleNames: ['СНИЛС', 'SNILS'], translation: 'СНИЛС' }, | ||
{ possibleNames: ['ИНН', 'INN', 'ИНН организации'], translation: 'ИНН' }, | ||
{ possibleNames: ['E'], translation: 'Email' }, | ||
{ possibleNames: ['L'], translation: 'Город' }, | ||
{ possibleNames: ['ИНН', 'ИННФЛ', 'ИНН ФЛ', 'INN', 'ИНН физического лица'], translation: 'ИНН' }, | ||
{ possibleNames: ['ИННЮЛ', 'ИНН ЮЛ', 'INN LE', 'INNLE', 'ИНН организации'], translation: 'ИНН организации' }, | ||
{ possibleNames: ['E', 'email', 'emailAddress', 'pkcs9email'], translation: 'Email' }, | ||
{ possibleNames: ['L', 'localityName'], translation: 'Город' }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
import { TagsTranslations } from './tags-translations'; | ||
|
||
export const SUBJECT_TAGS_TRANSLATIONS: TagsTranslations[] = [ | ||
{ possibleNames: ['UnstructuredName'], translation: 'Неструктурированное имя' }, | ||
{ possibleNames: ['CN'], translation: 'Владелец' }, | ||
{ possibleNames: ['SN'], translation: 'Фамилия' }, | ||
{ possibleNames: ['G'], translation: 'Имя Отчество' }, | ||
{ possibleNames: ['C'], translation: 'Страна' }, | ||
{ possibleNames: ['S'], translation: 'Регион' }, | ||
{ possibleNames: ['STREET'], translation: 'Адрес' }, | ||
{ possibleNames: ['O'], translation: 'Компания' }, | ||
{ possibleNames: ['OU'], translation: 'Отдел/подразделение' }, | ||
{ possibleNames: ['T'], translation: 'Должность' }, | ||
{ possibleNames: ['UN', 'UnstructuredName'], translation: 'Неструктурированное имя' }, | ||
{ possibleNames: ['CN', 'commonName'], translation: 'Владелец' }, | ||
{ possibleNames: ['SN', 'surname'], translation: 'Фамилия' }, | ||
{ possibleNames: ['G', 'givenName', 'gn'], translation: 'Имя Отчество' }, | ||
{ possibleNames: ['C', 'countryName'], translation: 'Страна' }, | ||
{ possibleNames: ['S', 'ST', 'stateOrProvinceName'], translation: 'Регион' }, | ||
{ possibleNames: ['STREET', 'streetAddress'], translation: 'Адрес' }, | ||
{ possibleNames: ['O', 'organizationName'], translation: 'Компания' }, | ||
{ possibleNames: ['OU', 'organizationalUnitName'], translation: 'Отдел/подразделение' }, | ||
{ possibleNames: ['T', 'TITLE'], translation: 'Должность' }, | ||
{ possibleNames: ['ОГРН', 'OGRN'], translation: 'ОГРН' }, | ||
{ possibleNames: ['ОГРНИП', 'OGRNIP'], translation: 'ОГРНИП' }, | ||
{ possibleNames: ['СНИЛС', 'SNILS'], translation: 'СНИЛС' }, | ||
{ possibleNames: ['ИНН', 'INN', 'ИНН организации'], translation: 'ИНН' }, | ||
{ possibleNames: ['E'], translation: 'Email' }, | ||
{ possibleNames: ['L'], translation: 'Город' }, | ||
{ possibleNames: ['ИНН', 'ИННФЛ', 'ИНН ФЛ', 'INN', 'ИНН физического лица'], translation: 'ИНН' }, | ||
{ possibleNames: ['ИННЮЛ', 'ИНН ЮЛ', 'INN LE', 'INNLE', 'ИНН организации'], translation: 'ИНН организации' }, | ||
{ possibleNames: ['E', 'email', 'emailAddress', 'pkcs9email'], translation: 'Email' }, | ||
{ possibleNames: ['L', 'localityName'], translation: 'Город' }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ describe('_parseCertInfo', () => { | |
'OID.1.2.643.6.3.1.4.1=Петров', | ||
'UNKNOWN=неизвестный тэг', | ||
'[email protected]', | ||
'INN=007811514257', | ||
'ИНН организации=007811514257', | ||
'INN=997811514257', | ||
'ИНН ЮЛ=007811514257', | ||
'OGRN=1127847087885', | ||
'SNILS=11617693460', | ||
].join(', '); | ||
|
@@ -96,13 +96,13 @@ describe('_parseCertInfo', () => { | |
isTranslated: true, | ||
}, | ||
{ | ||
description: '007811514257', | ||
description: '997811514257', | ||
title: 'ИНН', | ||
isTranslated: true, | ||
}, | ||
{ | ||
description: '007811514257', | ||
title: 'ИНН', | ||
title: 'ИНН организации', | ||
isTranslated: true, | ||
}, | ||
{ | ||
|
@@ -128,8 +128,8 @@ describe('_parseCertInfo', () => { | |
'L=Санкт-Петербург', | ||
'S=78 Санкт-Петербург', | ||
'C=RU', | ||
'INN=007813317783', | ||
'ИНН организации=007813317783', | ||
'INN=997813317783', | ||
'INNLE=007813317783', | ||
'OGRN=1057810150892', | ||
'[email protected]', | ||
].join(', '); | ||
|
@@ -176,13 +176,13 @@ describe('_parseCertInfo', () => { | |
isTranslated: true, | ||
}, | ||
{ | ||
description: '007813317783', | ||
description: '997813317783', | ||
title: 'ИНН', | ||
isTranslated: true, | ||
}, | ||
{ | ||
description: '007813317783', | ||
title: 'ИНН', | ||
title: 'ИНН организации', | ||
isTranslated: true, | ||
}, | ||
{ | ||
|