Token semnatura digitala

Creat de bogdy, Februarie 19, 2025, 04:04:49 PM

« precedentul - următorul »

bogdy

Buna, asta e eroarea
algoritm semnare necunoscut. Corectati in fisierul C:\Users\tehnic\webgest_local\decl_ro\dist\config\cryptoID.cfg valoarea atributului 'algorithm'

si aici e continutul fisierului
library=C:\WINDOWS\system32\crypto_pkcs11.dll
algorithm=CryptoID
name=SmartCard

idei?
  •  

elis

Valoarea pentru atributul algoritm este `sunpkcs11`.
  •  

bogdy

#2
Am ajuns la alta problema.
Eroare obținere cod de autorizare
La test returneaza OK.
  •  

elis

Ar fi bine daca ai atasa o captura de ecran cu eroarea si fisierul catalina.out din tomcat. Asta daca persista eroarea (deci nu a fost vreo problema temporara de server Anaf).
  •  

bogdy

#4
extras din catalina.out. Am inlocuit userul cu "adm-aplicatie" si denumirea firmei cu "nume_firma"
[2025-02-21 22:35:17] [info] 2025-02-21 22:35:17.199--JSP(/webgest/Intrare.jsp)--- Load page cu op:logout from ip=192.168.1.226 usr=adm-aplicatie
[2025-02-21 22:35:17] [info] 2025-02-21 22:35:17.199--JSP(/webgest/Intrare.jsp)--- logout pt.: adm-aplicatie --firma nume_firma
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.386--JSP(/webgest/Intrare.jsp)--- Load page cu op:login from ip=192.168.1.226 usr=null
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.386--JSP(/webgest/Intrare.jsp)--- begin login la webgest  adm-aplicatie --ip:192.168.1.226
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.386--JSP(/webgest/Intrare.jsp)--- end clear session
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.386--JSP(/webgest/Intrare.jsp)--- vers app:8.12.5
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.392--JSP(/webgest/Intrare.jsp)--- usr/pass OK
[2025-02-21 22:35:21] [info] /var/lib/tomcat9/webapps/webgest/WEB-INF is not a URL, trying to convert it to a file URL
[2025-02-21 22:35:21] [info] Loading mapping descriptors from mappMb.xml
[2025-02-21 22:35:21] [warning] Configuration for database 'nume_firma' loaded twice.
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.868--JSP(/webgest/Intrare.jsp)--- begin test ultupdaterulat
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.868--JSP(/webgest/Intrare.jsp)--- ultupdatee:08120001--ultupdater:08120001
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.869--JSP(/webgest/Intrare.jsp)--- end test ultupdaterulat
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.877--JSP(/webgest/Intrare.jsp)--- db_mb=org.exolab.castor.jdo.engine.LocalDatabaseImpl@a1ea91e:nume_firma
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.878--JSP(/webgest/Intrare.jsp)-prepareSession--- begin prepareSession
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.879--JSP(/webgest/Intrare.jsp)-prepareSession--- end create session xmlcontext, operator
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.880--JSP(/webgest/Intrare.jsp)-prepareSession--- end create session drop
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.880--JSP(/webgest/Intrare.jsp)-prepareSession--- end create session debug, publ
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.880--JSP(/webgest/Intrare.jsp)-prepareSession--- end prepareSession
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.880--JSP(/webgest/Intrare.jsp)--- operator=mirabit.gest.jdo.Personal@37210093 dbname=nume_firma user=adm-aplicatie
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.881--JSP(/webgest/Intrare.jsp)--- jsonstr={"respcod":"1","meserr":"OK","updperm":"","numefirma":"nume_firma","appname":"/webgest"}
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.899--JSP(/webgest/WebgestMain.jsp)--- Load page  from ip=192.168.1.226 usr=adm-aplicatie db:nume_firma
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.899--JSP(/webgest/WebgestMain.jsp)--- vers wg=8.12.5
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.903--JSP(/webgest/WebgestMain.jsp)--- buperr=false
[2025-02-21 22:35:21] [info] 2025-02-21 22:35:21.956--JSP(/webgest/WebgestMain.jsp)--- alertCertExp = false certExpAlrt=
[2025-02-21 22:35:22] [info] 2025-02-21 22:35:22.077--JSP(/webgest/AdmAjaxControl.jsp)---Load page cu op=getuv ip=192.168.1.226 user:adm-aplicatie
[2025-02-21 22:35:22] [info] 2025-02-21 22:35:22.086--JSP(/webgest/WGStat.jsp) --- Load page cu op=cv --referer:http://192.168.0.161:8080/webgest/WebgestMain.jsp
[2025-02-21 22:35:22] [info] 2025-02-21 22:35:22.088--JSP(/webgest/WGStat.jsp) --- logvis:false
[2025-02-21 22:35:22] [info] javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
[2025-02-21 22:35:22] [info] #011at sun.security.ssl.Alerts.getSSLException(Alerts.java:198)
[2025-02-21 22:35:22] [info] #011at sun.security.ssl.Alerts.getSSLException(Alerts.java:159)
[2025-02-21 22:35:22] [info] #011at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2041)
[2025-02-21 22:35:22] [info] #011at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1145)
[2025-02-21 22:35:22] [info] #011at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1388)
[2025-02-21 22:35:22] [info] #011at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1416)
[2025-02-21 22:35:22] [info] #011at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1400)
[2025-02-21 22:35:22] [info] #011at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
[2025-02-21 22:35:22] [info] #011at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
[2025-02-21 22:35:22] [info] #011at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570)
[2025-02-21 22:35:22] [info] #011at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
[2025-02-21 22:35:22] [info] #011at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
[2025-02-21 22:35:22] [info] #011at mirabit.gest.util.HelperMB.getUlt_vers_xml(HelperMB.java:9810)
[2025-02-21 22:35:22] [info] #011at org.apache.jsp.AdmAjaxControl_jsp._jspService(AdmAjaxControl_jsp.java:362)
[2025-02-21 22:35:22] [info] #011at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
[2025-02-21 22:35:22] [info] #011at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
[2025-02-21 22:35:22] [info] #011at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
[2025-02-21 22:35:22] [info] #011at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
[2025-02-21 22:35:22] [info] #011at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
[2025-02-21 22:35:22] [info] #011at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
[2025-02-21 22:35:22] [info] #011at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
[2025-02-21 22:35:22] [info] #011at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
[2025-02-21 22:35:22] [info] #011at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:375)
[2025-02-21 22:35:22] [info] #011at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
[2025-02-21 22:35:22] [info] #011at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
[2025-02-21 22:35:22] [info] #011at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
[2025-02-21 22:35:22] [info] #011at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
[2025-02-21 22:35:22] [info] #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2025-02-21 22:35:22] [info] #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2025-02-21 22:35:22] [info] #011at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[2025-02-21 22:35:22] [info] #011at java.lang.Thread.run(Thread.java:748)
[2025-02-21 22:35:23] [info] 2025-02-21 22:35:23.407--JSP(/webgest/BeginAdmin.jsp)---Load page... from ip=192.168.1.226 usr=adm-aplicatie
[2025-02-21 22:35:27] [info] 2025-02-21 22:35:27.313--JSP(/webgest/AdmCerts.jsp)---Load page  from ip=192.168.1.226 usr=adm-aplicatie
[2025-02-21 22:35:29] [info] 2025-02-21 22:35:29.291--JSP(/webgest/AdmAccTknCert.jsp)---Load page from ip=192.168.1.226 usr=adm-aplicatie
[2025-02-21 22:35:32] [info] 2025-02-21 22:35:32.023--JSP(/webgest/AdmAjaxControl2.jsp)-- Load page cu op=getDetFromCertusb ip=192.168.1.226 user:adm-aplicatie

extras din xdrv_ws.out

ReqWS--getTknFull- first conn responseCode=200
ReqWS--getTknFull--redirect url all time=https://www.webgest.ro?error=access_denied
java.lang.Exception
at mirabit.comm.pkcs.ReqWS.getTknFull(ReqWS.java:202)
at mirabit.local.gen.TKNDispathcer.GETACCTKNFULL(TKNDispathcer.java:37)
at mirabit.local.ttnserver.EcrServer.onMessage(EcrServer.java:2236)
at org.java_websocket.server.WebSocketServer.onWebsocketMessage(WebSocketServer.java:673)
at org.java_websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:885)
at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:819)
at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:379)
at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:216)
at org.java_websocket.server.WebSocketServer$WebSocketWorker.doDecode(WebSocketServer.java:1046)
at org.java_websocket.server.WebSocketServer$WebSocketWorker.run(WebSocketServer.java:1028)
ReqWS--getTknFull--result to return =  Eroare ob?inere cod de autorizare
java.lang.Exception
at mirabit.local.gen.TKNDispathcer.GETACCTKNFULL(TKNDispathcer.java:42)
at mirabit.local.ttnserver.EcrServer.onMessage(EcrServer.java:2236)
at org.java_websocket.server.WebSocketServer.onWebsocketMessage(WebSocketServer.java:673)
at org.java_websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:885)
at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:819)
at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:379)
at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:216)
at org.java_websocket.server.WebSocketServer$WebSocketWorker.doDecode(WebSocketServer.java:1046)
at org.java_websocket.server.WebSocketServer$WebSocketWorker.run(WebSocketServer.java:1028)
java.lang.Exception
at mirabit.local.ttnserver.EcrServer.onMessage(EcrServer.java:2241)
at org.java_websocket.server.WebSocketServer.onWebsocketMessage(WebSocketServer.java:673)
at org.java_websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:885)
at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:819)
at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:379)
at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:216)
at org.java_websocket.server.WebSocketServer$WebSocketWorker.doDecode(WebSocketServer.java:1046)
at org.java_websocket.server.WebSocketServer$WebSocketWorker.run(WebSocketServer.java:1028)
ECRServer  =2025-02-21 22:35:34.312= connection closed 


  •  

cios

Același token a mai fost folosit în Webgest și a funcționat vreodată (acum un an parcă ai mai făcut încercări)?
  •  

bogdy

acelasi token, acelasi laptop, acelasi windows. Ce s-a schimbat e doar certificatul care a expirat in nov-2024 si a fost actualizat in 02.2025
  •  

bogdy

Am rezolvat.
Nu stiu exact care a fost problema dar cei mai semnificativi pasi au fost urmatorii
1. instalare utilitar cdp (certdigital) a venit si cu ceva update la driver fata de ce era pe token
2. dezactivare firewall/antivirus
3. sters certificatul vechi de pe device. Dupa acest pas a funtionat.

in ideea ca mai are cineva probleme cu cert digital
  •