cancel
Showing results for 
Search instead for 
Did you mean: 

facing issue with a digitalsigning plugin

parth
Champ in-the-making
Champ in-the-making

Hi all,

I am new to alfresco.
I am using alfresco community edition 201605 (v05.1.0).
facing issue with a digitalsigning plugin for creating self signature docs (link is as below)
Digital signing | Alfresco Add-ons - Alfresco Customizations
while creating signature with this(from dashlet) it shows following error:

2016-11-15 10:19:10,985 DEBUG [org.alfresco.plugin.digitalSigning.webscript.SignUpload] [http-apr-8083-exec-8] Retrieve parameters
2016-11-15 10:19:11,104 ERROR [org.alfresco.plugin.digitalSigning.webscript.SignUpload] [http-apr-8083-exec-8] 10150035 toDerInputStream rejects tag type 45
org.springframework.extensions.webscripts.WebScriptException: 10150035 toDerInputStream rejects tag type 45
at org.alfresco.plugin.digitalSigning.webscript.SignUpload$1.execute(SignUpload.java:220)
at org.alfresco.plugin.digitalSigning.webscript.SignUpload$1.execute(SignUpload.java:86)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
at org.alfresco.plugin.digitalSigning.webscript.SignUpload$2.doWork(SignUpload.java:322)
at org.alfresco.plugin.digitalSigning.webscript.SignUpload$2.doWork(SignUpload.java:320)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
at org.alfresco.plugin.digitalSigning.webscript.SignUpload.executeImpl(SignUpload.java:319)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:512)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:580)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:649)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:421)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:301)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:382)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)

alfresco add-ons‌

3 REPLIES 3

kalpesh_c2
Star Collaborator
Star Collaborator

Hi Parth,

The problem seems to be in the keyfile you are trying to upload. You must upload keyfile with the correct format. I have generated the keyfile with the following java commnad which was working fine :

keytool -genkey -keyalg RSA -alias <<your alias name>> -keystore keystore.p12 -storetype pkcs12 -storepass <<your password>> -validity 360 -keysize 2048

Run this on command line if you are on windows machine. You can give any alias and password, it will generate the keyfile in the pkcs12 format. Upload the generated keyfile 'keystore.p12' to the keyfile. Note: give the same alias and password which you have used in the command while signing the document.

Let me know if you still face the same issue.

Thanks,

Kalpesh

ContCentric

parth
Champ in-the-making
Champ in-the-making

Thank You Sir...

kalpesh_c2
Star Collaborator
Star Collaborator

I am glad Parth that my answer was useful for you.