cancel
Showing results for 
Search instead for 
Did you mean: 

How Solve this iaik.pkcs.pkcs1.b.b(Unknown Source) Error.

vdurgarao09
Contributor
0 Kudos

Hi Experts

I am trying to decrypt the user login credentials while logging to SAP portal.  Bellow code is used.

  PrivateKey privKey = bean.getRandomKey();

  Cipher cipher = Cipher.getInstance("RSA");

  cipher.init(Cipher.DECRYPT_MODE,privKey);

  cipherData = cipher.doFinal(new BASE64Decoder().decodeBuffer(enPwd));

But I am getting the error specified below, May I kindly request you please give me some approach to resolve this problem if you have come across the same issue earlier.

iaik.pkcs.pkcs1.b.b(Unknown Source)

iaik.pkcs.pkcs1.RSACipher.a(Unknown Source)

iaik.pkcs.pkcs1.RSACipher.engineDoFinal(UnknownSource)

javax.crypto.Cipher.doFinal(DashoA12275)

We use SAP Portal version 7.01 SP12 and JDK 1.4.2_19.

Configtool to set the path  of the cookie and domain of the cookie are Changed.

"cluster-data" -> "Global Server Configuration" -> "services" -> "servlet_jsp"

Please find the attached image.


But Default setting are there that time it's working,But some security region that settings customized.the following way

  • JSESSIONID.CookieDomain = SERVER (Default value)
  • SESSIONID.CookiePath = APPLICATION(Custom values)
  • SAPLB.CookiePath = APPLICATION(Custom values)
  • SAPLB.CookieDomain = SERVER(Custom values)


This below settings is there that time working fine.

  • SESSIONID.CookiePath = / (Default values)
  • SAPLB.CookiePath = / (Default values)
  • SAPLB.CookieDomain = NONE(Default values)

Please give your suggestion and Help...Solution is Required.

Thank you && Regards,

Durga Rao

Accepted Solutions (1)

Accepted Solutions (1)

vdurgarao09
Contributor
0 Kudos

Dear Experts This is My Enter Error

iaik.pkcs.pkcs1.b.b(Unknown Source)iaik.pkcs.pkcs1.RSACipher.a(Unknown Source)iaik.pkcs.pkcs1.RSACipher.engineDoFinal(Unknown Source)javax.crypto.Cipher.doFinal(DashoA12275)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:331)com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:173)com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:119)com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)com.sapportals.portal.ume.component.logon.SAPMLogonCertComponent.doContent(SAPMLogonCertComponent.java:33)com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:235)com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:557)java.security.AccessController.doPrivileged(Native Method)com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)javax.servlet.http.HttpServlet.service(HttpServlet.java:853)com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1060)com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)java.security.AccessController.doPrivileged(Native Method)com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

vdurgarao09
Contributor
0 Kudos

I found the solution  to my problem,


Thank you && Regards,

Durga Rao

Steffi_Warnecke
Active Contributor
0 Kudos

Hello ,

please come back and share your solution with the comunity. Just a "found it" doesn't really help others with the same problem.

Regards,

Steffi.

vdurgarao09
Contributor
0 Kudos

Dear All,

My problem solution we are doing encryption and Decryption before page loading time we are generating one key value same key using to encryption and decryption done.But decryption time some time that key value is missing that time cipher class getting Unknown Source.So we checked all possible ways but in between one page again  loading time that key was generated but final we doing decryption time that value is not there.In that page level we generated one dynamically calling one URL in that one extra '/' slash is there that one working fine that main problem in that URL only we are removed that / after we are getting that key value.After working it's normally.

Thanks and Regrades,

Durga Rao. 

Answers (0)