SAP Knowledge Base Article - Preview

2970851 - javax.crypto.BadPaddingException: Invalid PKCS#5 padding length importing Private Key in NWA Keystore

Symptom

You have a Private Key to use in a secure communication, when trying to import in NWA Keystore it fails with: Unable to decrypt PrivateKey! iaik.pkcs.pkcs8.EncryptedPrivateKeyInfo$1: Error decrypting private key: javax.crypto.BadPaddingException: Invalid PKCS#5 padding length:<>

key.png


Read more...

Environment

  • SAP enhancement package 1 for SAP NetWeaver Process Integration 7.1
  • SAP NetWeaver 7.3
  • SAP enhancement package 1 for SAP NetWeaver 7.3
  • SAP NetWeaver 7.4
  • SAP NetWeaver 7.5

Product

SAP NetWeaver 7.1 ; SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP enhancement package 1 for SAP NetWeaver 7.3

Keywords

Unable to decrypt PrivateKey!, javax.crypto.BadPaddingException, Invalid PKCS#5 padding length, private key, iaik.pkcs.pkcs8.EncryptedPrivateKeyInfo$1 , KBA , BC-XI-CON-AFW-SEC , Security , BC-JAS-SEC-CPG , Cryptography , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.