Jump to content

Ошибка при получении сертификата (KP_CERTIFICATE): 0x80090011


vl2019

Recommended Posts

Добрый день.

ViPNet CSP 4.2 Linux x64.
С помощью утилиты certreq был создан запрос на сертификат с параметрами из файла /opt/itcs/share/certreq/qualified.inf
Получен сертифкат в тестовом УЦ http://testcert.infotecs.ru/
Сертификат установлен в личные, связан с контейнером.
Корневой сертификат и список отозванных установлены в хранилище root.

При попытке выгрузить сертификат, используя CryptoAPI, выходит ошибка: 0x80090011 (NTE_NOT_FOUND Object was not found.)

Действия при выгрузке сертификата следующие:

Получаю дескриптопр криптопровайдера
CryptAcquireContext(ИМЯ_КОНТЕЙНЕРА_FQCN)
Получаю дескриптор ключа
CryptGetUserKey(AT_KEYEXCHANGE или AT_SIGNATURE)
При получении сертификата (его размера) выходит ошибка: 0x80090011
CryptGetKeyParam(KP_CERTIFICATE)

Подскажите, пожалуйста, в чем может быть проблема?

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.