Skip to main content
Participating Frequently
August 2, 2022
Question

Could not read RSA private key

  • August 2, 2022
  • 1 reply
  • 468 views

Hi, I'm storing my private key in my Azure function configuration and when I run my application from the remote Azure server I get "Could not read RSA private key." This error does not occur when I run my application locally (I'm storing the RSA key in my local.settings.json file). Why can I read the RSA key locally, but not remotely? Thanks.

    This topic has been closed for replies.

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    August 2, 2022

    In some places, I've seen issues where the newlines get removed when the private key value is stored. Maybe see if that's happening? I talk about how I handle that in Lambda here: https://medium.com/adobetech/using-adobe-pdf-services-with-amazon-lambda-949143c06696