#9402 Fix RSA private key PEM import
RSA private key import from PEM format now works correctly by using the proper RSA cryptographic service provider type instead of the base RSA type.
- 3files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-17 by JesperSchulz · 3 files (+34 -4), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Fixes a runtime failure when RSA.ToSecretXmlString is called with a PEM private key
- The PEM is now imported into the RSACryptoServiceProvider type that RSAEncryptionHelper.ImportFromPem requires
- PEM key material stays wrapped as SecretText outside the existing non-debuggable helper
- The test app gets friend access so it can reuse the internal PEM export helper
- A test was added for importing a private key from PEM. The public API is unchanged
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 1476 “RSA Impl.”, System Application: modified
Context
- Work items: AB#619464
- Labels: AL: System Application, Team: Integrations
- Systems: administration
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).