Windows Server 2012 R2
Единый клиент 2.9.0.1531
УТМ version:2.0.5 changeSet:8db3d880b93f+ buildNumber:1013
Сначала была настроена библиотека libtranscrypt 0.0.8 (1,74 mb), при ней кстати при остановке служба транспорт всегда зависала на стадии остановки, приходилось убивать процесс по пиду. При потере ключа ключ продолжает отображаться в едином клиенте, но при поптыке обновить данные о сертификатах - ошибка 0x0000000
Логи ниже
Полный лог libtranscrypt
Затем откатил настройки на jcPKCS11-2.dll, такая же ошибка, после чего вернулся обратно на libtranscrypt
Пробовал менять jacarta, всё по прежнему
Ошибка:
Код: Выбрать все
2017-04-01 07:04:51,269 ERROR es.programador.transport.h.e - Ошибка при получении и чтении документов с сервера ЕГАИС
com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: javax.net.ssl.SSLException: java.security.ProviderException: Initialization failed
at com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.getOutput(Unknown Source)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(Unknown Source)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(Unknown Source)
at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(Unknown Source)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Unknown Source)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Unknown Source)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Unknown Source)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Unknown Source)
at com.sun.xml.internal.ws.client.Stub.process(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
at com.sun.proxy.$Proxy37.getFilesToDownload(Unknown Source)
at es.programador.transport.h.e.a(Unknown Source)
at es.programador.transport.h.d.execute(Unknown Source)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Caused by: javax.net.ssl.SSLException: java.security.ProviderException: Initialization failed
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.SSLSocketImpl.handleException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
... 18 more
Caused by: java.security.ProviderException: Initialization failed
at sun.security.pkcs11.P11Signature.initialize(P11Signature.java:319)
at sun.security.pkcs11.P11Signature.engineInitSign(P11Signature.java:435)
at java.security.SignatureSpi.engineInitSign(Unknown Source)
at java.security.Signature$Delegate.init(Unknown Source)
at java.security.Signature$Delegate.chooseProvider(Unknown Source)
at java.security.Signature$Delegate.engineInitSign(Unknown Source)
at java.security.Signature.initSign(Unknown Source)
at sun.security.ssl.HandshakeMessage$CertificateVerify.<init>(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverHelloDone(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown Source)
at sun.security.ssl.Handshaker.process_record(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
... 25 more
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_FUNCTION_FAILED
at sun.security.pkcs11.wrapper.PKCS11.C_SignInit(Native Method)
at sun.security.pkcs11.P11Signature.initialize(P11Signature.java:311)
... 38 more
2017-04-01 07:04:52,348 WARN es.programador.transport.h.e - Ошибка работы с RSA ключем. Переинициализация.
2017-04-01 07:04:58,817 ERROR es.programador.transport.d.b - Ошибка переинициализации RSA
java.security.ProviderException: Initialization failed
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:376)
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:107)
at es.programador.transport.d.b.b(Unknown Source)
at es.programador.transport.d.b.d(Unknown Source)
at es.programador.transport.h.e.a(Unknown Source)
at es.programador.transport.h.d.execute(Unknown Source)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_FUNCTION_FAILED
at sun.security.pkcs11.wrapper.PKCS11.C_GetTokenInfo(Native Method)
at sun.security.pkcs11.Token.<init>(Token.java:135)
at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:858)
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:367)
... 7 more
2017-04-01 07:05:00,958 ERROR es.programador.transport.d.b - Проблемы с RSA ключом
java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_FUNCTION_FAILED
at sun.security.pkcs11.P11KeyStore.engineGetKey(P11KeyStore.java:330)
at java.security.KeyStore.getKey(Unknown Source)
at es.programador.transport.d.b.b(Unknown Source)
at es.programador.transport.d.b.c(Unknown Source)
at es.programador.transport.j$a.a(Unknown Source)
at es.programador.a.c.a(Unknown Source)
at es.programador.transport.h.e.a(Unknown Source)
at es.programador.transport.h.d.execute(Unknown Source)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_FUNCTION_FAILED
at sun.security.pkcs11.wrapper.PKCS11.C_FindObjectsInit(Native Method)
at sun.security.pkcs11.P11KeyStore.findObjects(P11KeyStore.java:2658)
at sun.security.pkcs11.P11KeyStore.getTokenObject(P11KeyStore.java:2170)
at sun.security.pkcs11.P11KeyStore.engineGetKey(P11KeyStore.java:310)
... 9 more
2017-04-01 07:05:06,083 ERROR es.programador.transport.d.b - Ошибка переинициализации RSA
java.security.ProviderException: Initialization failed
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:376)
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:107)
at es.programador.transport.d.b.b(Unknown Source)
at es.programador.transport.d.b.d(Unknown Source)
at es.programador.transport.d.b.b(Unknown Source)
at es.programador.transport.d.b.c(Unknown Source)
at es.programador.transport.j$a.a(Unknown Source)
at es.programador.a.c.a(Unknown Source)
at es.programador.transport.h.e.a(Unknown Source)
at es.programador.transport.h.d.execute(Unknown Source)
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_GENERAL_ERROR
at sun.security.pkcs11.wrapper.PKCS11.C_GetTokenInfo(Native Method)
at sun.security.pkcs11.Token.<init>(Token.java:135)
at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:858)
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:367)
... 11 more
2017-04-01 07:05:06,083 ERROR es.programador.transport.h.e - Ошибка при получении и чтении документов с сервера ЕГАИС