Спасибо за помощь, однако все равно что-то не выходит коннект. Код следующий:
/usr/lib/jvm/java-8-openjdk-amd64/bin/java -javaagent:/home/user/bin/idea-IC/lib/idea_rt.jar=40341:/home/user/bin/idea-IC/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/ASN1P.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/AdES-core.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/CAdES.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/J6CF.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/J6Oscar.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/JCP.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/JCPControlPane.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/JCPRequest.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/JCPRevCheck.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/JCPRevTools.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/JCPinst.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/JCPxml.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/JCSP.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/JCryptoP.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/Rutoken.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/XAdES.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/XMLDSigRI.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/asn1rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/cpSSL.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/forms_rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/home/user/IdeaProjects/certTest/out/production/certTest:/home/user/IdeaProjects/certTest/commons-codec-1.15.jar com.company.Main
May 13, 2021 8:54:06 PM ru.CryptoPro.JCSP.MSCAPI.cl_6 enumInstalledProviders
INFO: Provider with type 24 not found.
May 13, 2021 8:54:06 PM ru.CryptoPro.JCSP.MSCAPI.cl_6 enumInstalledProviders
INFO: Provider with type 24 not found.
May 13, 2021 8:54:07 PM ru.CryptoPro.JCP.tools.Starter check
INFO: Loading JCP 2.0.40424
May 13, 2021 8:54:07 PM ru.CryptoPro.JCP.tools.Starter check
INFO: JCP loaded.
May 13, 2021 8:54:07 PM com.company.Main addCert
INFO: Recording of a Certificate named "Cert" to HDImageStore is completed.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_38 <init>
WARNING: %% No appropriate keys for handshake
PATH: /path/to/cert/main.000/
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_38 <init>
WARNING: %% No appropriate keys for handshake
PATH: /path/to/cert/main.000/
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_121 a
FINE:
%% adding as trusted certificates %%
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_121 a
FINE:
%% adding as trusted certificates %%
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_121 a
FINE: adding as trusted cert:
Subject: 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
Issuer: 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
Algorithm: GOST3410_2012_256
Serial number: 0x4e6d478b26f27d657f768e025ce3d393
Valid from Fri Jul 06 15:18:06 MSK 2018
until Tue Jul 01 15:18:06 MSK 2036
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_121 a
FINE: adding as trusted cert:
Subject: 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
Issuer: 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
Algorithm: GOST3410_2012_256
Serial number: 0x4e6d478b26f27d657f768e025ce3d393
Valid from Fri Jul 06 15:18:06 MSK 2018
5DA578E8CF356ED4EECA090D9EB81ADB9621E331
until Tue Jul 01 15:18:06 MSK 2036
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: SSLContextImpl init.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: SSLContextImpl init.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: trigger seeding of SecureRandom
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: trigger seeding of SecureRandom
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: done seeding SecureRandom
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: done seeding SecureRandom
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: SSLContextImpl initialized.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: SSLContextImpl initialized.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
FINE: DefaultSSLContext getDefaultKeyManager().
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
FINE: DefaultSSLContext getDefaultKeyManager().
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
INFO: keyStore is :
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
INFO: keyStore is :
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
INFO: keyStore type is :
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
INFO: keyStore type is :
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
INFO: keyStore provider is :
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
INFO: keyStore provider is :
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
INFO: init keystore
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
INFO: init keystore
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
INFO: init keymanager of type GostX509
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext l
INFO: init keymanager of type GostX509
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_38 <init>
WARNING: %% No appropriate keys for handshake
PATH: /home/user/tmp/cert/main.000/
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_38 <init>
WARNING: %% No appropriate keys for handshake
PATH: /home/user/tmp/cert/main.000/
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.TrustManagerFactoryImpl a
INFO: trustStore is : No File Available, using empty keystore.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.TrustManagerFactoryImpl a
INFO: trustStore is : No File Available, using empty keystore.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.TrustManagerFactoryImpl a
INFO: trustStore type is : CertStore
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.TrustManagerFactoryImpl a
INFO: trustStore type is : CertStore
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.TrustManagerFactoryImpl a
INFO: trustStore provider is :
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.TrustManagerFactoryImpl a
INFO: trustStore provider is :
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.TrustManagerFactoryImpl a
INFO: init truststore
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.TrustManagerFactoryImpl a
INFO: init truststore
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_121 a
FINE:
%% adding as trusted certificates %%
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_121 a
FINE:
%% adding as trusted certificates %%
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: SSLContextImpl init.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: SSLContextImpl init.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: trigger seeding of SecureRandom
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: trigger seeding of SecureRandom
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: done seeding SecureRandom
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: done seeding SecureRandom
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: SSLContextImpl initialized.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl engineInit
INFO: SSLContextImpl initialized.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext <init>
INFO: DefaultSSLContext initialized.
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLContextImpl$DefaultSSLContext <init>
INFO: DefaultSSLContext initialized.
https://eaisto.gibdd.ru/...EECA090D9EB81ADB9621E331May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSessionImpl <init>
FINE: %% Initialized: [Session-1, SSL_NULL_WITH_NULL_NULL]
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSessionImpl <init>
FINE: %% Initialized: [Session-1, SSL_NULL_WITH_NULL_NULL]
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_58 a
FINE: Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_58 a
FINE: Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl setSoTimeout
FINE: main, setSoTimeout(0) called
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl setSoTimeout
FINE: main, setSoTimeout(0) called
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_15 a
FINE: %% No cached client session
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_15 a
FINE: %% No cached client session
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_42 f
FINE: *** ClientHello, TLSv1
RandomCookie: GMT: 1604150975 bytes = { 102, 104, 55, 169, 73, 129, 208, 10, 70, 177, 189, 117, 197, 207, 20, 61, 56, 230, 177, 218, 141, 75, 45, 12, 89, 140, 92, 97 }
Session ID: {}
Cipher Suites: [TLS_CIPHER_2012, TLS_CIPHER_2001]
Compression Methods: { 0 }
Extension ext_hash_and_mac_alg_select, ext_hash_and_mac_alg_select: [48, 32, 48, 30, 48, 8, 6, 6, 42, -123, 3, 2, 2, 9, 48, 8, 6, 6, 42, -123, 3, 2, 2, 22, 48, 8, 6, 6, 42, -123, 3, 2, 2, 23]
Extension renegotiation_info, renegotiated_connection: <empty>
***
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.cl_42 f
FINE: *** ClientHello, TLSv1
RandomCookie: GMT: 1604150975 bytes = { 102, 104, 55, 169, 73, 129, 208, 10, 70, 177, 189, 117, 197, 207, 20, 61, 56, 230, 177, 218, 141, 75, 45, 12, 89, 140, 92, 97 }
Session ID: {}
Cipher Suites: [TLS_CIPHER_2012, TLS_CIPHER_2001]
Compression Methods: { 0 }
Extension ext_hash_and_mac_alg_select, ext_hash_and_mac_alg_select: [48, 32, 48, 30, 48, 8, 6, 6, 42, -123, 3, 2, 2, 9, 48, 8, 6, 6, 42, -123, 3, 2, 2, 22, 48, 8, 6, 6, 42, -123, 3, 2, 2, 23]
Extension renegotiation_info, renegotiated_connection: <empty>
***
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl b
FINE: main, RECV TLSv1 ALERT: fatal, description = handshake_failure
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl b
FINE: main, RECV TLSv1 ALERT: fatal, description = handshake_failure
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl h
FINE: main called closeSocket()
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl h
FINE: main called closeSocket()
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl a
WARNING: main, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl a
WARNING: main, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl close
FINE: main called close()
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl close
FINE: main called close()
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl d
FINE: main, called closeInternal(true)
May 13, 2021 8:54:07 PM ru.CryptoPro.ssl.SSLSocketImpl d
FINE: main, called closeInternal(true)
Exception in thread "main" javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at ru.CryptoPro.ssl.cl_2.a(Unknown Source)
at ru.CryptoPro.ssl.cl_2.a(Unknown Source)
at ru.CryptoPro.ssl.SSLSocketImpl.b(Unknown Source)
at ru.CryptoPro.ssl.SSLSocketImpl.a(Unknown Source)
at ru.CryptoPro.ssl.SSLSocketImpl.n(Unknown Source)
at ru.CryptoPro.ssl.SSLSocketImpl.b(Unknown Source)
at ru.CryptoPro.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:197)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1340)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1315)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:264)
at com.company.Main.sendTest(Main.java:110)
at com.company.Main.main(Main.java:78)