Статус: Участник
Группы: Участники
Зарегистрирован: 29.10.2024(UTC) Сообщений: 10 Откуда: Екатеринбург Сказал(а) «Спасибо»: 1 раз
|
Добрый день! Пытаюсь отправлять запросы в ГИИС ДМДК https://exchange.dmdk.ru/ws/v3. Там двусторонний TLS. Из stunnel все работает отлично, но из Java получаю handshake_failure. помогите разобраться в логах, где проблема? тут весь лог:
Цитата: OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended Oct 30, 2024 11:13:33 AM ru.CryptoPro.ssl.cl_43 <init> FINE: Key store format: HDImageStore Oct 30, 2024 11:13:33 AM ru.CryptoPro.ssl.cl_43 <init> FINE: Entry 87045362@2024-09-05-GIVENNAME is not an entry with private key and certificate, continue. Oct 30, 2024 11:13:33 AM ru.CryptoPro.ssl.cl_43 <init> INFO: %% adding as private keys %% [2024-10-30 16:13:33,696] INFO [SSLLogger] [main] [] %% adding as private keys %%
FINE: Private key 87045444@2024-09-05-GIVENNAME has been loaded. Oct 30, 2024 11:13:33 AM ru.CryptoPro.ssl.cl_43 <init> FINE: *** found key for: 87045444@2024-09-05-GIVENNAME **** [2]: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false [3]: ObjectId: 2.5.29.35 Criticality=false AuthorityKeyIdentifier [ KeyIdentifier [ 0000: D2 DD 0D 0C B2 F5 0D BF 76 19 D5 A7 5D 6E 03 87 ........v...]n.. 0010: 53 32 57 04 S2W. ] [CN=CryptoPro GOST Root CA, O="LLC \"Crypto-Pro\"", L=Moscow, ST=Moscow, C=RU, OID.1.2.643.3.131.1.1=#120c303037373137313037393931, OID.1.2.643.100.1=#120d31303337373030303835343434] SerialNumber: [ 011265e8 0070afe3 9e49bbb7 4606f468 29] ]
[4]: ObjectId: 2.5.29.31 Criticality=false
[5]: ObjectId: 2.5.29.32 Criticality=false [6]: ObjectId: 2.5.29.37 Criticality=false
[7]: ObjectId: 2.5.29.15 Criticality=true
[8]: ObjectId: 2.5.29.17 Criticality=false
[9]: ObjectId: 2.5.29.14 Criticality=false
Algorithm: [GOST3411_2012_256WITHGOST3410_2012_256] Signature:
***
[2024-10-30 16:13:33,900] INFO [JCSPLogger] [main] [] Loading Java CSP 5.0.45549-A, Crypto-Pro CSP 5.0.13000 [2024-10-30 16:13:33,901] INFO [JCSPLogger] [main] [] Java CSP has been loaded. Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.pc_1.cl_0 <init> FINE: TrustAnchor is null, trustedMatch is false. Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.pc_10.cl_2 a FINE: Built certificate chain size: 3 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.util.SecureChecker checkPublicKeys FINEST: ENTRY Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.util.SecureChecker checkPublicKeys FINE: Checking if every certificate has GOST algorithm... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.util.SecureChecker checkPublicKeys FINE: Check completed. Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.util.SecureChecker checkPublicKeys FINEST: RETURN Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_120 a FINE: Found trusted certificate: [
SerialNumber: [ 014c1ae5 0070afbf 8f462783 14eb2af1 80]
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_48 f FINE: *** CertificateRequest Cert Types: Type-22, Type-67, Type-68, Type-238, Type-239 Supported Signature Algorithms: SHA256withECDSA, SHA384withECDSA, SHA512withECDSA, Unknown (hash:0x8, signature:0x7), Unknown (hash:0x8, signature:0x8), Unknown (hash:0x8, signature:0x9), Unknown (hash:0x8, signature:0xa), Unknown (hash:0x8, signature:0xb), Unknown (hash:0x8, signature:0x4), Unknown (hash:0x8, signature:0x5), Unknown (hash:0x8, signature:0x6), SHA256withRSA, SHA384withRSA, SHA512withRSA, SHA224withECDSA, SHA1withECDSA, SHA224withRSA, SHA1withRSA, Unknown (hash:0x3, signature:0x2), SHA1withDSA, Unknown (hash:0x4, signature:0x2), Unknown (hash:0x5, signature:0x2), Unknown (hash:0x6, signature:0x2), GOST3411_2012_256withGOST3410_2012_256, GOST3411_2012_512withGOST3410_2012_512, GOST3411_2012_256withGOST3410_2012_256, GOST3411_2012_512withGOST3410_2012_512, GOST3411withGOST3410EL Cert Authorities: <CN=Минкомсвязь России, OID.1.2.643.3.131.1.1=#120c303037373130343734333735, OID.1.2.643.100.1=#120d31303437373032303236373031, O=Минкомсвязь России, STREET="улица Тверская, дом 7", L=г. Москва, ST=77 Москва, C=RU, EMAILADDRESS=dit@minsvyaz.ru> <CN=ЗАО «Национальный удостоверяющий центр», O=ЗАО «Национальный удостоверяющий центр», STREET="ул. Авиамоторная, д. 8А, стр. 5", L=Москва, ST=77 г. Москва, C=RU, OID.1.2.643.3.131.1.1=#120c303037373232373636353938, OID.1.2.643.100.1=#120d31313237373436303336343934> <OID.1.2.643.100.1=#120d31313035323630303031313735, OID.1.2.643.3.131.1.1=#120c303035323630323730363936, STREET="ул. Радио, дом 24, корпус 1, помещение V, комната 23", EMAILADDRESS=ca@iecp.ru, L=г. Москва, ST=77 г. Москва, C=RU, OU=Удостоверяющий центр, O="Акционерное общество \"Аналитический Центр\"", CN="АО \"Аналитический Центр\""> <CN=ПАО Сбербанк, O=ПАО Сбербанк, OU=Удостоверяющий центр, STREET="ул. Вавилова, д. 19", L=г. Москва, ST=77 Москва, C=RU, OID.1.2.643.100.1=#120d31303237373030313332313935, EMAILADDRESS=casbrf@sberbank.ru, OID.1.2.643.100.4=#120a37373037303833383933> <CN=TLS-CA, C=RU> <CN=Центр сертификации, OID.1.2.643.3.131.1.1=#120c303037383133323532313539, OID.1.2.643.100.1=#120d31313637383437323235323831> <CN=Минцифры России, OID.1.2.643.100.4=#120a37373130343734333735, OID.1.2.643.100.1=#120d31303437373032303236373031, O=Минцифры России, STREET="Пресненская набережная, дом 10, строение 2", L=г. Москва, ST=77 Москва, C=RU, EMAILADDRESS=dit@digital.gov.ru> <CN=CryptoPro TLS CA, O="LLC \"Crypto-Pro\"", L=Moscow, ST=Moscow, C=RU, OID.1.2.643.100.1=#120d31303337373030303835343434, OID.1.2.643.100.4=#120a37373137313037393931> <CN=CryptoPro GOST Root CA, O="LLC \"Crypto-Pro\"", L=Moscow, ST=Moscow, C=RU, OID.1.2.643.3.131.1.1=#120c303037373137313037393931, OID.1.2.643.100.1=#120d31303337373030303835343434> <CN="Акционерное общество \"Гринатом\"", O="Акционерное общество \"Гринатом\"", OU=Отдел криптографической защиты, STREET=ул. Большая Ордынка д. 24, L=г. Москва, ST=77 Москва, C=RU, OID.1.2.643.100.1=#120d31303937373436383139373230, EMAILADDRESS=ca@rosatom.ru, OID.1.2.643.100.4=#120a37373036373239373336> <OID.1.2.643.100.4=#120a37373032323335313333, OID.1.2.643.100.1=#120d31303337373030303133303230, CN=Центральный банк Российской Федерации, O=Банк России, STREET="ул. Неглинная, д. 12", L=г. Москва, ST=77 г. Москва, C=RU> <CN="ООО \"Сертум-Про\"", O="ООО \"Сертум-Про\"", STREET="ул. Малопрудная, стр. 5, офис 715", L=Екатеринбург, ST=66 Свердловская область, C=RU, OID.1.2.643.100.4=#120a36363733323430333238, OID.1.2.643.100.1=#120d31313136363733303038353339, EMAILADDRESS=ca@sertum.ru> <CN=Федеральная налоговая служба, O=Федеральная налоговая служба, STREET="ул. Неглинная, д. 23", L=г. Москва, ST=77 Москва, C=RU, OID.1.2.643.100.1=#120d31303437373037303330353133, EMAILADDRESS=uc@tax.gov.ru, OID.1.2.643.100.4=#120a37373037333239313532>
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_69 a ALL: [read] GOST hashes: len = 3,613
....
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_69 b FINER: main, READ: TLSv1.2 Handshake, length = 4 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_48 f FINE: *** ServerHelloDone Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_69 a ALL: [read] GOST hashes: len = 4 0000: 0E 00 00 00 ....
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_16 a FINE: Certificate request received... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_16 a FINE: Search for client containers with GOST algorithms... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_16 a FINE: Search for client containers with any GOST algorithm... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_43 a FINE: %% getting aliases for Client Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_43 a FINER: %% tlsClientAllowSingleCertLocal = false Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_43 a FINE: %% checking alias: 87045444@2024-09-05-GIVENNAME... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_43 a FINE: %% certificate chain length = 1 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_43 a FINE: %% check public key algorithm ignored (client). Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_43 a FINE: %% signature algorithm not found. Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_43 a FINE: %% check extended key usage of Client, size: 4... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_43 a FINE: %% Extended key usage found and verified. Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_43 a FINE: %% check credential issuers... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_43 a WARNING: %% No alias is match [2024-10-30 16:13:34,276] WARN [SSLLogger] [main] [] %% No alias is match Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_16 a FINE: Appropriate client aliases not found. Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_16 a FINE: Containers not found. Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_16 a FINE: No appropriate cert was found. Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_16 a FINE: Warning: no suitable certificate found - continuing without client authentication Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_48 f FINE: *** Certificate message ***
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_16 a FINE: Generate pre-master-key. Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_48 f FINE: *** ClientKeyExchange Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_80 a ALL: [write] GOST hashes: len = 168
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_80 a ALL: [Raw write]: length = 173
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_16 a FINE: Unwrap client key exchange to pre-master-key. Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_64 a FINE: CONNECTION KEYGEN: Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_64 a ALL: Client Nonce: Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_64 a ALL: Server Nonce: Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_64 a FINE: Master Secret: ru.CryptoPro.JCSP.Key.MasterSecret@4baca539 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_64 a FINE: Client MAC write Secret: ru.CryptoPro.JCSP.Key.GostSecretKey@5ada5fd3 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_64 a FINE: Server MAC write Secret: ru.CryptoPro.JCSP.Key.GostSecretKey@4d36c8cb Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_64 a FINE: Client write key: ru.CryptoPro.JCSP.Key.GostSecretKey@15733aa5 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_64 a FINE: Server write key: ru.CryptoPro.JCSP.Key.GostSecretKey@3b58d05f Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_64 a ALL: Client write IV: 0000: CB D7 D2 CA B0 72 38 C7 .....r8.
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_64 a ALL: Server write IV: 0000: 7C 9D 51 7D 6F DA 6D 44 ..Q.o.mD
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_80 a FINER: main, WRITE: TLSv1.2 Change Cipher Spec, length = 1 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_80 a ALL: [Raw write]: length = 6 0000: 14 03 03 00 01 01 ......
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_7 <init> FINER: Fixed IV = CB D7 D2 CA B0 72 38 C7 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_48 f FINE: *** Finished verify_data: { 146, 55, 224, 120, 68, 144, 55, 244, 27, 130, 143, 149, 44, 121, 249, 216, 143, 158, 245, 251, 55, 58, 20, 177, 180, 47, 45, 143, 79, 224, 209, 85 } ***
Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_80 a ALL: [write] GOST hashes: len = 36 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_79 f FINER: Update MAC keys... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_79 f FINER: seq_num = 0 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_80 a FINE: MAC computed: 16 86 A3 43 77 7B BD 74 90 CC CC F9 A2 67 6E F9 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_7 a FINER: Updating cipher keys... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_7 a FINER: seq_num = 0 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_7 a FINER: New IV = CB D7 D2 CA B0 72 38 C7 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_7 a FINE: Begin encrypt... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_7 a ALL: Plaintext before ENCRYPTION: len = 52 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_7 a FINE: Encrypted... Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_80 a ALL: [Raw write]: length = 57 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_69 a ALL: [Raw read]: length = 5 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_69 a ALL: [Raw read]: length = 2 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.cl_69 b FINER: main, READ: TLSv1.2 Alert, length = 2 Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.SSLSocketImpl b FINE: main, RECV TLSv1.2 ALERT: fatal, description = handshake_failure Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.SSLSessionImpl invalidate FINE: %% Invalidated: {0} [Session-1, TLS_GOSTR341112_256_WITH_KUZNYECHIK_CTR_OMAC] Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.SSLSocketImpl i FINE: main called closeSocket() Oct 30, 2024 11:13:34 AM ru.CryptoPro.ssl.SSLSocketImpl a WARNING: main, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure [2024-10-30 16:13:34,323] WARN [SSLLogger] [main] [] main, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at ru.CryptoPro.ssl.Alerts.getSSLException(Unknown Source) at ru.CryptoPro.ssl.Alerts.getSSLException(Unknown Source)
|