Uploading Pem file Secrets

I have having a time trying to get a RSA pem file into the secret manager. No matter if I use the wrangler secret put in the CLI or try to do it though the CF Admin, it does not work.

The CLI accepts the value from put but then this error at runtime oin the worker:
Failed to load private key: PKCS#1 PEM error in pre-encapsulation boundary’, src/worker_lib.rs

Admin throws error like :
script body must not be empty (Code: 10021)
when I try to edit the variable

Can someone let me know the recipe?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.