Skip to Content
May 30, 2014 at 12:33 PM

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


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");


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)



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