SAP Knowledge Base Article - Preview

2414542 - Internal PGP Error: Illegal key size

Symptom

You are processing encrypted files using SFTP channel. You see that the messages are failing with the exception below:

PGP Encryption Module: Could not process message, Internal PGP Error (org.bouncycastle.openpgp.PGPException: Exception creating cipher)Cause: Illegal key size
MP: exception caught with message Could not process message, Internal PGP Error (org.bouncycastle.openpgp.PGPException: Exception creating cipher)
Exception caught by adapter framework: Could not process message, Internal PGP Error (org.bouncycastle.openpgp.PGPException: Exception creating cipher)
Transmitting the message to endpoint <local> using connection SFTP_http://sap.com/xi/XI/SFTP failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Could not process message, Internal PGP Error (org.bouncycastle.openpgp.PGPException: Exception creating cipher) 

If you go to http://<host>:<port>/BC//VerifyJCE in order to check the JCE Policy, you will see the following configuration:

8 bit ok
16 bit ok
32 bit ok
64 bit ok
128 bit ok
256 bit null
512 bit null
1024 bit null
2048 bit null
4096 bit null


Read more...

Environment

  • PI Release Independent
  • SAP NetWeaver
  • SAP Process Integration
  • SAP Process Integration, business-to-business add-on
  • SAP Process Integration, secure connectivity add-on

Product

SAP NetWeaver all versions ; SAP Process Integration all versions ; SAP Process Integration, business-to-business add-on all versions ; SAP Process Integration, secure connectivity add-on all versions

Keywords

Process Integration 7.0, PI 7.0, PI 7.01, PI 7.02, Process Integration 7.10, PI 7.10, Process Integration 7.11, PI 7.11, Process Integration 7.30, PI 7.30, Process Integration 7.31, PI 7.31, Process Orchestration 7.40, PI 7.40, PO 7.40, Process Orchestration 7.50, PI 7.50, PO 7.50, NetWeaver, XI, local_policy.jar, US_export_policy, PIB2BPGP, PIB2BSFTP, Ilegal Key Size, SFTP, PGP, Internal PGP Error, Jurisdiction Policies, Exception decrypting key, JCE, PGPException, Exception creating cipher , KBA , BC-XI-CON-SFT , Secure File Transfer Protocol Adapter , BC-XI-CON-B2B , B2B - Connectivity , 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.