открепленные_пркрепленные_подписи
ДОбрый день.
Не могу получить прикрепленную подпись.
Генерирую подпись так:
var sign_gen = rutoken_plugin.sign(
device_user,
cert_list_user[0],
newStr,
true,
{detached: false, addUserCertificate: true}
);
Вот Подписанные данные:
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0id2luZG93cy0xMjUxIj8+CjzQ
pNCw0LnQu9Cf0KTQoD4KCTzQmNC80Y/QpNCw0LnQu9CwPjwv0JjQvNGP0KTQsNC5
0LvQsD4KCTzQl9Cw0LPQvtC70L7QstC+0LrQpNCw0LnQu9CwPgoJCTzQktC10YDR
gdC40Y/QpNC+0YDQvNCw0YLQsD4wNy4wMDwv0JLQtdGA0YHQuNGP0KTQvtGA0LzQ
sNGC0LA+CgkJPNCi0LjQv9Ck0LDQudC70LA+0JLQndCV0KjQndCY0Jk8L9Ci0LjQ
v9Ck0LDQudC70LA+CgkJPNCf0YDQvtCz0YDQsNC80LzQsNCf0L7QtNCz0L7RgtC+
0LLQutC40JTQsNC90L3Ri9GFPgoJCQk80J3QsNC30LLQsNC90LjQtdCf0YDQvtCz
0YDQsNC80LzRiz5QRU5TLUlOVkVTVDwv0J3QsNC30LLQsNC90LjQtdCf0YDQvtCz
0YDQsNC80LzRiz4KCQkJPNCS0LXRgNGB0LjRjz42LjIuNDwv0JLQtdGA0YHQuNGP
PgoJCTwv0J/RgNC+0LPRgNCw0LzQvNCw0J/QvtC00LPQvtGC0L7QstC60LjQlNCw
0L3QvdGL0YU+CgkJPNCY0YHRgtC+0YfQvdC40LrQlNCw0L3QvdGL0YU+0J7Qn9Ck
0KAt0JvQmNCn0J3Qnjwv0JjRgdGC0L7Rh9C90LjQutCU0LDQvdC90YvRhT4KCTwv
0JfQsNCz0L7Qu9C+0LLQvtC60KTQsNC50LvQsD4KCTzQn9Cw0YfQutCw0JLRhdC+
0LTRj9GJ0LjRhdCU0L7QutGD0LzQtdC90YLQvtCyINCe0LrRgNGD0LbQtdC90LjQ
tT0i0JIg0Y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0LXQvdGC
0YAg0LTQu9GPINGC0LXRgdGC0LjRgNC+0LLQsNC90LjRjyDQuCDRgdC70YPQttC1
0LHQvdGL0YUg0L3Rg9C20LQxGDAWBgUqhQNkARINMTAyNTIwMzAzOTg0MDEaMBgG
CCqFAwOBAwEBEgwwMDUyNjAxMTI5MDAxHTAbBgkqhkiG9w0BCQEWDlRlc3RDQUBl
a2V5LnJ1AgIEAjAKBgYqhQMCAgkFADAKBgYqhQMCAhMFAARA3oVE3kr4LqWborIf
RqAdIpdX5O2FXIp+1XGs1ElOt85Uly1SzZFe9RIt/6N23rlGZV0IfLz2ySVqeHh8
WWkepQ==
Прошу прощения за полотнища, не увидел загрузку файлов на форуме(есть только изображение).
- ТЕстовая страница(в SDK) на тестовых данных работает нормально, то есть подпись прикрепленная.
- На мою подпись говорит неправильные параметры.
- При проверке подписи на сторонних прграммах(openSSL, криптоПРо) вылазит ошибка - отсутствие контента, то есть нет данных.
- При смене флага detached - ничего не происходит, даже размер подписи(при примерно одинаковых даных), примерно одинаков.
- Я грешу, что данные бинарные, - это как мне видиться единственное различае с тестовой стараницей SDK.
ЗАранее спасибо за ответ.