Skip to main content
Participating Frequently
Aug 2, 2022 7:41 PM UTC
Question

Could not read RSA private key

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 is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    Aug 2, 2022 10:29 PM UTC

    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

    Translate