Задача обмена документами отменена. Ошибка работы RSA
Здравствуйте! Не могу записать ключ для утм, выдает ошибки - Задача обмена документами отменена. Ошибка работы RSA, Ошибка инициализации криптопровайдера RSA.
2024-07-15 11:43:50,408 INFO ru.centerinform.transport.pki.key.KeyMaster - Найден слот смарт-карты [0:Rutoken ECP ]
2024-07-15 11:43:51,023 ERROR ru.centerinform.transport.pki.key.KeyMaster - Ошибка инициализации криптопровайдера RSA
java.security.ProviderException: java.security.KeyStoreException: invalid KeyStore state: found 7 private keys sharing CKA_ID FSRAR-RSA-030000558766
at sun.security.pkcs11.P11KeyStore.engineGetKey(P11KeyStore.java:330)
at java.security.KeyStore.getKey(KeyStore.java:1023)
at ru.centerinform.transport.pki.key.KeyMaster.q(KeyMaster.java:313)
at ru.centerinform.transport.pki.key.KeyMaster.o(KeyMaster.java:263)
at ru.centerinform.transport.pki.key.KeyMaster.a(KeyMaster.java:423)
at ru.centerinform.transport.pki.key.KeyMaster.a(KeyMaster.java:397)
at ru.centerinform.transport.backbone.service.TokenService.e(TokenService.java:121)
at ru.centerinform.transport.backbone.schedule.WSExchangeJob.execute(WSExchangeJob.java:61)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.security.KeyStoreException: invalid KeyStore state: found 7 private keys sharing CKA_ID FSRAR-RSA-030000558766
at sun.security.pkcs11.P11KeyStore.getTokenObject(P11KeyStore.java:2250)
at sun.security.pkcs11.P11KeyStore.engineGetKey(P11KeyStore.java:310)
... 9 common frames omitted
2024-07-15 11:43:51,059 ERROR ru.centerinform.transport.pki.key.KeyMaster - Проблемы с RSA ключом
java.security.ProviderException: java.security.KeyStoreException: invalid KeyStore state: found 7 private keys sharing CKA_ID FSRAR-RSA-030000558766
at sun.security.pkcs11.P11KeyStore.engineGetKey(P11KeyStore.java:330)
at java.security.KeyStore.getKey(KeyStore.java:1023)
at ru.centerinform.transport.pki.key.KeyMaster.a(KeyMaster.java:378)
at ru.centerinform.transport.pki.key.KeyMaster.a(KeyMaster.java:399)
at ru.centerinform.transport.backbone.service.TokenService.e(TokenService.java:121)
at ru.centerinform.transport.backbone.schedule.WSExchangeJob.execute(WSExchangeJob.java:61)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.security.KeyStoreException: invalid KeyStore state: found 7 private keys sharing CKA_ID FSRAR-RSA-030000558766
at sun.security.pkcs11.P11KeyStore.getTokenObject(P11KeyStore.java:2250)
at sun.security.pkcs11.P11KeyStore.engineGetKey(P11KeyStore.java:310)
... 7 common frames omitted
2024-07-15 11:43:51,116 INFO ru.centerinform.transport.backbone.schedule.WSExchangeJob - Задача обмена документами отменена. Ошибка работы RSA
2024-07-15 11:43:55,538 WARN ru.centerinform.transport.util.a - Поле [OU] не найдено в сертификате
2024-07-15 11:43:55,539 WARN ru.centerinform.transport.util.a - Поле [OID.1.2.643.100.5] не найдено в сертификате
2024-07-15 11:43:55,541 WARN ru.centerinform.transport.util.a - Поле [OID.1.2.840.113549.1.9.2] не найдено в сертификате
2024-07-15 11:43:55,543 WARN ru.centerinform.transport.util.a - Поле [OU] не найдено в сертификате
2024-07-15 11:43:55,543 WARN ru.centerinform.transport.util.a - Поле [OID.1.2.643.100.5] не найдено в сертификате
2024-07-15 11:43:55,544 WARN ru.centerinform.transport.util.a - Поле [OID.1.2.840.113549.1.9.2] не найдено в сертификате
2024-07-15 11:43:55,545 WARN ru.centerinform.transport.util.a - Поле [OU] не найдено в сертификате
2024-07-15 11:43:55,546 WARN ru.centerinform.transport.util.a - Поле [OID.1.2.643.100.5] не найдено в сертификате
2024-07-15 11:43:55,546 WARN ru.centerinform.transport.util.a - Поле [OID.1.2.840.113549.1.9.2] не найдено в сертификате
2024-07-15 11:43:59,692 ERROR ru.centerinform.transport.pki.key.KeyMaster - Отсутствует RSA сертификат
2024-07-15 11:43:59,752 ERROR ru.centerinform.transport.rest.sender.CertInquirer - Ошибка при попытке записи сертификата
java.security.KeyStoreException: invalid KeyStore state: found 7 private keys sharing CKA_ID FSRAR-RSA-030000558766
at sun.security.pkcs11.P11KeyStore.getTokenObject(P11KeyStore.java:2250)
at sun.security.pkcs11.P11KeyStore.destroyPkey(P11KeyStore.java:2106)
at sun.security.pkcs11.P11KeyStore.deleteEntry(P11KeyStore.java:552)
at sun.security.pkcs11.P11KeyStore.engineDeleteEntry(P11KeyStore.java:534)
at sun.security.pkcs11.P11KeyStore.engineSetEntry(P11KeyStore.java:1105)
at java.security.KeyStore.setEntry(KeyStore.java:1557)
at ru.centerinform.transport.pki.key.KeyMaster.a(KeyMaster.java:733)
at ru.centerinform.transport.rest.sender.CertInquirer.a(CertInquirer.java:261)
at ru.centerinform.transport.backbone.http.controller.api.v2.ApiRsaController.a(ApiRsaController.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1061)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:961)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at ru.centerinform.transport.backbone.http.filter.WhiteListIPFilter.doFilter(WhiteListIPFilter.java:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:103)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:89)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90)
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
2024-07-15 11:43:59,771 ERROR ru.centerinform.transport.pki.key.KeyMaster - Отсутствует RSA сертификат
2024-07-15 11:43:59,772 WARN ru.centerinform.transport.backbone.schedule.RequestLicenseJob - Задача запроса статуса лицензии отменена.