02.07.2007 10:34:39CryptAcquireContext и CSP 3.0 Ответов: 24
Дмитрий
Добрый день.

При переходе с 2.0 на 3.0 возникла неожиданная проблема.
Использую следующий код:
HCRYPTPROV n_prov = NULL;
CryptAcquireContext( &n_prov, NULL, NULL, 75, CRYPT_VERIFYCONTEXT )

и в результате получаю ошибку 0x80090019 (NTE_KEYSET_NOT_DEF).

Подскажите, пожалуйста, что делаю не так (сам никакого криминала не вижу)?
КриптоПро CSP КС1 3.0.3300.1
 
Ответы:
02.07.2007 13:10:11Василий
Сообщите, пож., содержимое ветки реестра (с этой машины):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults
02.07.2007 13:35:06Дмитрий
Привожу. Отмечу, что проблема не только на этой машине, а также что при указании 71 все работает.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2001 Cryptographic Service Provider]
"Image Path"="D:\\Program Files\\Crypto Pro\\CSP\\cpcsp.dll"
"CP Module Entry Point"="DllStartServer"
"Type"=dword:0000004b
"SigInFile"=dword:00000001
"CP Module Name"="cpcspi.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2001 KC1 CSP]
"Type"=dword:0000004b
"SigInFile"=dword:00000001
"CP Module Name"="cpcspi.dll"
"CP Module Entry Point"="DllStartServer"
"Image Path"="D:\\Program Files\\Crypto Pro\\CSP\\cpcsp.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-94 Cryptographic Service Provider]
"Image Path"="D:\\Program Files\\Crypto Pro\\CSP\\cpcsp.dll"
"Type"=dword:00000047
"SigInFile"=dword:00000001
"CP Module Name"="cpcspi.dll"
"CP Module Entry Point"="DllStartServer"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-94 KC1 CSP]
"Image Path"="D:\\Program Files\\Crypto Pro\\CSP\\cpcsp.dll"
"Type"=dword:00000047
"SigInFile"=dword:00000001
"CP Module Name"="cpcspi.dll"
"CP Module Entry Point"="DllStartServer"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Gemplus GemSAFE Card CSP v1.0]
"Image Path"="D:\\WINNT\\System32\\gpkcsp.dll"
"Type"=dword:00000001
"SigInFile"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft Base Cryptographic Provider v1.0]
"SigInFile"=dword:00000000
"Type"=dword:00000001
"Image Path"="rsabase.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft Base DSS and Diffie-Hellman Cryptographic Provider]
"Image Path"="dssbase.dll"
"Type"=dword:0000000d
"SigInFile"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft Base DSS Cryptographic Provider]
"Image Path"="dssbase.dll"
"Type"=dword:00000003
"SigInFile"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft DH SChannel Cryptographic Provider]
"SigInFile"=dword:00000000
"Type"=dword:00000012
"Image Path"="dssenh.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft Enhanced Cryptographic Provider v1.0]
"SigInFile"=dword:00000000
"Type"=dword:00000001
"Image Path"="rsaenh.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider]
"SigInFile"=dword:00000000
"Type"=dword:0000000d
"Image Path"="dssenh.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft RSA SChannel Cryptographic Provider]
"SigInFile"=dword:00000000
"Type"=dword:0000000c
"Image Path"="rsaenh.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft Strong Cryptographic Provider]
"SigInFile"=dword:00000000
"Type"=dword:00000001
"Image Path"="rsaenh.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Schlumberger Cryptographic Service Provider]
"Image Path"="D:\\WINNT\\System32\\slbcsp.dll"
"Type"=dword:00000001
"SigInFile"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 001]
"Name"="Microsoft Strong Cryptographic Provider"
"TypeName"="RSA Full (Signature and Key Exchange)"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 002]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 003]
"Name"="Microsoft Base DSS Cryptographic Provider"
"TypeName"="DSS Signature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 012]
"Name"="Microsoft RSA SChannel Cryptographic Provider"
"TypeName"="RSA SChannel"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 013]
"Name"="Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider"
"TypeName"="DSS Signature with Diffie-Hellman Key Exchange"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 018]
"Name"="Microsoft DH SChannel Cryptographic Provider"
"TypeName"="Diffie-Hellman SChannel"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 071]
"Name"="Crypto-Pro GOST R 34.10-94 KC1 CSP"
"TypeName"="GOST R 34.10-94 Signature with Diffie-Hellman Key Exchange"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 075]
"TypeName"="GOST R 34.10-2001 Signature with Diffie-Hellman Key Exchange"
"Name"="Crypto-Pro GOST R 34.10-2001 KC1 CSP"
02.07.2007 14:13:01Василий
Удалите раздел
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 002]

Он остался от передыдущего CSP (2.0 или 1.1) из-за проблем при деинсталляции.
02.07.2007 15:57:32Дмитрий
Удалил.
Перезагрузился.
Ошибка та же самая.
03.07.2007 12:41:12Василий
Выполните в папке d:\Program Files\Crypto Pro\CSP такие команды:

csptest -keyset -info -verifycontext -provtype 71 > 71.txt

csptest -keyset -info -verifycontext -provtype 75 > 75.txt

и приведите то, что получилось в текстовых файлах.
03.07.2007 13:31:54Дмитрий
Привожу (кодировку где надо в ответах поменял):

Для 71:

An error occurred in running the program.
.\tmain.c:787:Can not get CryptoPro CSP version: CPAcquireContext failed.

Error number 80090019 (-2146893799).
Набор ключей не определен.


CryptAcquireContext succeeded.HCRYPTPROV: 1286888
CryptGetProvParam succeeded.
Provider name: Crypto-Pro GOST R 34.10-94 KC1 CSP

CSP algorithms info:
Name:ProCSP ГОСТ 28147-89 Type:Encrypt DefaultLen:256 MinLen:256
MaxLen:256 Prot:0 Name:'GOST 28147-89'(14) Long:'ProCSP ГОСТ 28147-89'(21) Algid:00026142

Name:ProCSP ГОСТ Р 34.11-94 Type:Hash DefaultLen:256 MinLen:256
MaxLen:256 Prot:0 Name:'GOST R 34.11-94'(16) Long:'ProCSP ГОСТ Р 34.11-94'(23) Algid:00032798

Name:ProCSP Имитовставка ГОСТ 28147-89 Type:Hash DefaultLen:32 MinLen:32
MaxLen:32 Prot:0 Name:'HMAC GOST 28147-89'(19) Long:'ProCSP Имитовставка ГОСТ 28147-89'(34) Algid:00032799

Name:ProCSP ГОСТ Р 34.10-94 Type:Signature DefaultLen:1024 MinLen:1024
MaxLen:1024 Prot:0 Name:'GOST R 34.10-94'(16) Long:'ProCSP ГОСТ Р 34.10-94'(23) Algid:00011806

Name:ProCSP Диффи-Хелман Крипто Про ГОСТ Type:Exchange DefaultLen:1024 MinLen:1024
MaxLen:1024 Prot:0 Name:'Diffie-Hellman'(15) Long:'ProCSP Диффи-Хелман Крипто Про ГОСТ'(36) Algid:00043550

Name:ProCSP Диффи-Хелман Крипто Про ГОСТ Type:Exchange DefaultLen:1024 MinLen:1024
MaxLen:1024 Prot:0 Name:'Diffie-Hellman'(15) Long:'ProCSP Диффи-Хелман Крипто Про ГОСТ'(36) Algid:00043551

Everything is OK.
A Total: SYS: 0.016 sec USR: 0.094 sec UTC: 0.109 sec
[ErrorCode: 0x00000000]

Для 75:

An error occurred in running the program.
.\tmain.c:787:Can not get CryptoPro CSP version: CPAcquireContext failed.

Error number 80090019 (-2146893799).
Набор ключей не определен.


An error occurred in running the program.
.\ctkey.c:567:Error during CryptAcquireContext.

Error number 80090019 (-2146893799).
Набор ключей не определен.


Program is terminating.
Press Enter to exit.
[ErrorCode: 0x80090019]
03.07.2007 14:12:07maxdm
А можно еще веточку HKEY_CURRENT_USER\Software\Microsoft\Cryptography\Providers , если она есть конечно.
03.07.2007 15:06:33Дмитрий
Конечно! Там много, порежу на части.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{00AAC56B-CD44-11D0-8CC2-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{189A3842-3041-11D1-85E1-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{1A6631C0-3EA2-11D1-AE01-006097C6A9AA}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{31D1ADC1-D329-11D1-8ED8-0080C76516C6}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{5555C2CD-17FB-11D1-85C4-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{573E31F8-AABA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{573E31F8-DDBA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{64B9D180-8DA2-11CF-8736-00AA00A485EB}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{7801EBD0-CF4B-11D0-851F-0060979387EA}]
"$DLL"="Cryptdlg.dll"
"$Function"="CertTrustCertPolicy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{C6B2E8D0-E005-11CF-A134-00C04FD7BF43}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{D41E4F1D-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{D41E4F1F-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{E6F795B1-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{E6F795B2-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\{FC451C16-AC75-11D1-B4B8-00C04FB66EA0}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCheckCert"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{00AAC56B-CD44-11D0-8CC2-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{189A3842-3041-11D1-85E1-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{1A6631C0-3EA2-11D1-AE01-006097C6A9AA}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{31D1ADC1-D329-11D1-8ED8-0080C76516C6}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{5555C2CD-17FB-11D1-85C4-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{573E31F8-AABA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="HTTPSCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{573E31F8-DDBA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{64B9D180-8DA2-11CF-8736-00AA00A485EB}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{7801EBD0-CF4B-11D0-851F-0060979387EA}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{C6B2E8D0-E005-11CF-A134-00C04FD7BF43}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{D41E4F1D-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{D41E4F1F-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{E6F795B1-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"
03.07.2007 15:07:31Дмитрий
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{E6F795B2-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="WintrustCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Certificate\{FC451C16-AC75-11D1-B4B8-00C04FB66EA0}]
"$DLL"="WINTRUST.DLL"
"$Function"="GenericChainCertificateTrust"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{00AAC56B-CD44-11D0-8CC2-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCleanup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{189A3842-3041-11D1-85E1-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCleanup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{1A6631C0-3EA2-11D1-AE01-006097C6A9AA}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCleanup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{5555C2CD-17FB-11D1-85C4-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="OfficeCleanupPolicy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{573E31F8-AABA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCleanup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{573E31F8-DDBA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCleanup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{64B9D180-8DA2-11CF-8736-00AA00A485EB}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCleanup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{7801EBD0-CF4B-11D0-851F-0060979387EA}]
"$DLL"="Cryptdlg.dll"
"$Function"="CertTrustCleanup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{C6B2E8D0-E005-11CF-A134-00C04FD7BF43}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCleanup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="DriverCleanupPolicy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Cleanup\{FC451C16-AC75-11D1-B4B8-00C04FB66EA0}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubCleanup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\DiagnosticPolicy]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\DiagnosticPolicy\{1A6631C0-3EA2-11D1-AE01-006097C6A9AA}]
"$DLL"="mso.dll"
"$Function"="MsoWintrustTestPolicy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\DiagnosticPolicy\{573E31F8-DDBA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubDumpStructure"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{00AAC56B-CD44-11D0-8CC2-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubAuthenticode"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{189A3842-3041-11D1-85E1-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubAuthenticode"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{1A6631C0-3EA2-11D1-AE01-006097C6A9AA}]
"$DLL"="mso.dll"
"$Function"="MsoWintrustFinalPolicy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{31D1ADC1-D329-11D1-8ED8-0080C76516C6}]
"$DLL"="mscorsec.dll"
"$Function"="CORPolicyEE"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{5555C2CD-17FB-11D1-85C4-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubAuthenticode"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{573E31F8-AABA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="HTTPSFinalProv"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{573E31F8-DDBA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubAuthenticode"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{64B9D180-8DA2-11CF-8736-00AA00A485EB}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubAuthenticode"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{7801EBD0-CF4B-11D0-851F-0060979387EA}]
"$DLL"="Cryptdlg.dll"
"$Function"="CertTrustFinalPolicy"
03.07.2007 15:08:36Дмитрий
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{C6B2E8D0-E005-11CF-A134-00C04FD7BF43}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubAuthenticode"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{D41E4F1D-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="corpol.dll"
"$Function"="CORPolicyProvider"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{D41E4F1F-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="corpol.dll"
"$Function"="CORLockDownProvider"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{E6F795B1-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="javacypt.dll"
"$Function"="JavaPolicyProvider"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{E6F795B2-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="javacypt.dll"
"$Function"="JavaCheckPolicy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="DriverFinalPolicy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\FinalPolicy\{FC451C16-AC75-11D1-B4B8-00C04FB66EA0}]
"$DLL"="WINTRUST.DLL"
"$Function"="GenericChainFinalProv"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{00AAC56B-CD44-11D0-8CC2-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{189A3842-3041-11D1-85E1-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubDefCertInit"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{1A6631C0-3EA2-11D1-AE01-006097C6A9AA}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{31D1ADC1-D329-11D1-8ED8-0080C76516C6}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{5555C2CD-17FB-11D1-85C4-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="OfficeInitializePolicy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{573E31F8-AABA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{573E31F8-DDBA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{64B9D180-8DA2-11CF-8736-00AA00A485EB}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{7801EBD0-CF4B-11D0-851F-0060979387EA}]
"$DLL"="Cryptdlg.dll"
"$Function"="CertTrustInit"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{C6B2E8D0-E005-11CF-A134-00C04FD7BF43}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{D41E4F1D-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{D41E4F1F-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{E6F795B1-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{E6F795B2-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="DriverInitializePolicy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Initialization\{FC451C16-AC75-11D1-B4B8-00C04FB66EA0}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubInitialize"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{00AAC56B-CD44-11D0-8CC2-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{189A3842-3041-11D1-85E1-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{1A6631C0-3EA2-11D1-AE01-006097C6A9AA}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{31D1ADC1-D329-11D1-8ED8-0080C76516C6}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{5555C2CD-17FB-11D1-85C4-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{573E31F8-AABA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{573E31F8-DDBA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{64B9D180-8DA2-11CF-8736-00AA00A485EB}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{C6B2E8D0-E005-11CF-A134-00C04FD7BF43}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{D41E4F1D-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{D41E4F1F-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{E6F795B1-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{E6F795B2-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Message\{FC451C16-AC75-11D1-B4B8-00C04FB66EA0}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadMessage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{00AAC56B-CD44-11D0-8CC2-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{189A3842-3041-11D1-85E1-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{1A6631C0-3EA2-11D1-AE01-006097C6A9AA}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{31D1ADC1-D329-11D1-8ED8-0080C76516C6}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{5555C2CD-17FB-11D1-85C4-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{573E31F8-AABA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{573E31F8-DDBA-11D0-8CCB-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{64B9D180-8DA2-11CF-8736-00AA00A485EB}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{C6B2E8D0-E005-11CF-A134-00C04FD7BF43}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{D41E4F1D-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{D41E4F1F-A407-11D1-8BC9-00C04FA30A41}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{E6F795B1-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{E6F795B2-F738-11D0-A72F-00A0C903B83D}]
"$DLL"="SOFTPUB.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Signature\{FC451C16-AC75-11D1-B4B8-00C04FB66EA0}]
"$DLL"="WINTRUST.DLL"
"$Function"="SoftpubLoadSignature"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Usages]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Usages\1.3.6.1.4.1.311.10.3.3]
"DefaultId"="{573E31F8-AABA-11D0-8CCB-00C04FC295EE}"
"$DLL"="WINTRUST.DLL"
"CallbackAllocFunction"="SoftpubLoadDefUsageCallData"
"CallbackFreeFunction"="SoftpubFreeDefUsageCallData"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Usages\1.3.6.1.5.5.7.3.1]
"DefaultId"="{573E31F8-AABA-11D0-8CCB-00C04FC295EE}"
"$DLL"="WINTRUST.DLL"
"CallbackAllocFunction"="SoftpubLoadDefUsageCallData"
"CallbackFreeFunction"="SoftpubFreeDefUsageCallData"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Usages\1.3.6.1.5.5.7.3.2]
"DefaultId"="{573E31F8-AABA-11D0-8CCB-00C04FC295EE}"
"$DLL"="WINTRUST.DLL"
"CallbackAllocFunction"="SoftpubLoadDefUsageCallData"
"CallbackFreeFunction"="SoftpubFreeDefUsageCallData"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Providers\Trust\Usages\1.3.6.1.5.5.7.3.3]
"DefaultId"="{00AAC56B-CD44-11D0-8CC2-00C04FC295EE}"
03.07.2007 15:37:36maxdm
!!!!!HKEY_CURRENT_USER!!!!!
HKEY_CURRENT_USER\Software\Microsoft\Cryptography\Providers

03.07.2007 16:09:02Дмитрий
Очень извиняюсь за неумение читать! Собака и правда порылась тут. Спасибо - все заработало.
28.08.2007 16:13:33Дмитрий
У меня похожая проблема...

Win 2003 R2 SP2
CryptoPro 3.0.3300.2 CSP+TLS

разделов
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types\Type 002] и [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Crypto-Pro Cryptographic Service Provider]
в реестре нет.

В какой то момент, к сожалению не могу понять, когда именно, перестал корректно работать КриптоПро под одним из пользователей. До этого под этим пользователем был установлен контейнер и личный сертификат (заказаны на другой машине).

Сейчас при попытке открыть список контейнеров выдается ошибка
---------------------------
Properties: CryptoPro CSP
---------------------------
Error accessing selected CSP
---------------------------
OK
---------------------------

Штатно пользователь - не админ, однако включение его в группу админов, переустановка КриптоПро как из под штатного админа, так и из-под этого пользователя и прочие танцы с бубном результата не принесли. Грохал даже профиль из C:\documents and settings. Пользователь доменный.

На вкладке Algoithms Область General - неактивная и пустая.


csptest -keyset -info -verifycontext -provtype 71
csptest -keyset -info -verifycontext -provtype 75
выдают следующее:

An error occurred in running the program.
.\tmain.c:743:Can not get CryptoPro CSP version: CPAcquireContext failed.

Error number 8009001a (-2146893798).
Keyset as registered is invalid.

An error occurred in running the program.
.\ctkey.c:567:Error during CryptAcquireContext.

Error number 8009001a (-2146893798).
Keyset as registered is invalid.

Program is terminating.
Press Enter to exit.




Теоретически, можно вместо этого пользователя завести другого, но хочется обойтись малой кровью, да и интересно выяснить, в чем проблема.
Под двумя другим пользователями все работает (один админ - другой простой пользователь).
28.08.2007 16:15:39Дмитрий
Да, забыл.
КриптоПро 3.0 ставился сразу с интегрированным SP2.
КриптоПро 2.0 никогда не было на машине (ставились только комопненты для обратной совместимости).
28.08.2007 16:21:31maxdm
HKEY_CURRENT_USER\Software\Microsoft\Cryptography\Providers в студию.
29.08.2007 8:11:08Дмитрий
HKCU\Software\Microsoft\Cryptography\Providers нет под обоими юзерами.

все что есть в Cryptography:

[HKEY_CURRENT_USER\Software\Microsoft\Cryptography]

[HKEY_CURRENT_USER\Software\Microsoft\Cryptography\AutoEnrollment]
"AEFlags"=dword:00000001

29.08.2007 11:51:35maxdm
csptest -keyset -info -verifycontext -provtype 75 -cplevel
попробуйте такую команду
29.08.2007 18:12:34Дмитрий
под тем юзером, под которым все ок:
CSP (Type:71) v3.0.3293 KC1 Release OS:Windows CPU:IA32 FastCode:READY,ENABLED.
CSP (Type:75) v3.0.3293 KC1 Release OS:Windows CPU:IA32 FastCode:READY,ENABLED.
CryptAcquireContext succeeded.HCRYPTPROV: 3816488
CryptGetProvParam succeeded.
Provider name: Crypto-Pro GOST R 34.10-2001 Cryptographic Service Provider

CSP algorithms info:
Name:ProCSP ГОСТ 28147-89 Type:Encrypt DefaultLen:256 MinLen:256
MaxLen:256 Prot:0 Name:'GOST 28147-89'(14) Long:'ProCSP ГОСТ 28147-89'(21) Algid:00026142

Name:ProCSP ГОСТ Р 34.11-94 Type:Hash DefaultLen:256 MinLen:256
MaxLen:256 Prot:0 Name:'GOST R 34.11-94'(16) Long:'ProCSP ГОСТ Р 34.11-94'(23) Algid:00032798

Name:ProCSP Имитовставка ГОСТ 28147-89 Type:Hash DefaultLen:32 MinLen:32
MaxLen:32 Prot:0 Name:'HMAC GOST 28147-89'(19) Long:'ProCSP Имитовставка ГОСТ 28147-89'(34) Algid:00032799

Name:ProCSP ГОСТ Р 34.10-01 Type:Signature DefaultLen:512 MinLen:512
MaxLen:512 Prot:0 Name:'GOST R 34.10-01'(16) Long:'ProCSP ГОСТ Р 34.10-01'(23) Algid:00011811

Name:ProCSP Диффи-Хелман Элл Крипто Про ГОСТ Type:Exchange DefaultLen:512 MinLen:512
MaxLen:512 Prot:0 Name:'Diffie-Hellman EL'(18) Long:'ProCSP Диффи-Хелман Элл Крипто Про ГОСТ'(40) Algid:00043556

Name:ProCSP Диффи-Хелман Элл Крипто Про ГОСТ Type:Exchange DefaultLen:512 MinLen:512
MaxLen:512 Prot:0 Name:'Diffie-Hellman EL'(18) Long:'ProCSP Диффи-Хелман Элл Крипто Про ГОСТ'(40) Algid:00043557

Everything is OK.
A Total: SYS: 0.016 sec USR: 0.047 sec UTC: 0.062 sec
[ErrorCode: 0x00000000]


Под тем, под которым не работает:
An error occurred in running the program.
.\tmain.c:743:Can not get CryptoPro CSP version: CPAcquireContext failed.

Error number 8009001a (-2146893798).
Keyset as registered is invalid.

An error occurred in running the program.
.\ctkey.c:567:Error during CryptAcquireContext.

Error number 8009001a (-2146893798).
Keyset as registered is invalid.

Program is terminating.
Press Enter to exit.
29.08.2007 18:27:31maxdm
Если у пользователя нет ключей в реестре и забытых "запомненных" паролей - попробуйте удалить веточку
HKEY_LOCAL_MACHINE\SOFTWARE\Crypto Pro\Settings\Users\%User SID%
30.08.2007 7:27:10Дмитрий
Спасибо, все стало ok!
05.12.2007 15:18:43LexSTV
День добрый.
Возникла та же ошибка, что описывалась уважаемыми людьми выше.
При добавлении личного сертификата на стадии выбора ключей выдает такое сообщение
"Error accessing selected CSP"
в ветке реестра HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider Types
есть какие угодно провайдеры кроме 002.
Да, забыл. Сначала на машину поставил криптоПРО 2 случайно, но потом удалил и поставил третью версию.
05.12.2007 15:25:03LexSTV
Прочитал еще пару статей на сайте и увидел, что это каким-то образом может быть связано с vpn-client'ом?
На машину я заходил под админом через впн, но, думаю к делу это не должно относиться...
05.12.2007 15:26:57LexSTV
в ветке реестра HKEY_CURRENT_USER\Software\Microsoft\Cryptography
есть только AutoEnrollment
05.12.2007 15:59:01LexSTV
Проблема решилась переустановкой криптоПРО