Рутокен Плагин - генерация запроса
Здравствуйте! Подскажите пожалуйста как задать criticality: true для keyUsage?
var keyUsageVal = [
"digitalSignature",
"nonRepudiation",
"keyEncipherment",
"dataEncipherment"
];
var extKeyUsageVal = [
"1.2.643.2.2.34.25",
"1.2.643.2.2.34.26",
"1.2.643.2.2.34.6",
"clientAuth",
"emailProtection"
];
var certificatePolicies = [
"1.2.643.100.113.1", // КС1
"1.2.643.100.113.2" // КС2
];
var extensions = {
"keyUsage": keyUsageVal,
"extKeyUsage": extKeyUsageVal,
"certificatePolicies": certificatePolicies
};
var options = {
"subjectSignTool": 'СКЗИ «Рутокен ЭЦП 2.0»',
"hashAlgorithm": plugin.HASH_TYPE_GOST3411_12_256,
"customExtensions": [
{
oid: "1.3.6.1.4.1.311.21.7",
value: "MA0GCCqFAwICLgAIAgEB",
criticality: false
}
]
};
// console.log(devices[0], keyId, subject, extensions, options);
plugin.createPkcs10(devices[0], keyId, subject, extensions, options)
Заранее спасибо!