hwang-cadent commented on issue #58573:
URL: https://github.com/apache/airflow/issues/58573#issuecomment-3566915565

   > If you look above, I also tried with a base64 encoded key. It matches the 
suggested base64 conversion in the docs.
   > 
   > My key is PKCS#8.
   > 
   > ```
   > ❯ head -n1 rsa_key.pem
   > -----BEGIN PRIVATE KEY-----
   > 
   > # Convert to pkcs#8 and diff
   > ❯ openssl pkcs8 -in rsa_key.pem -topk8 -nocrypt -out test_pkcs8.pem
   > ❯ diff rsa_key.pem test_pkcs8.pem
   > ```
   > 
   > The bug report is that, despite my key being PKCS#8 and in the proper 
format, it still doesnt decode in openssl somehow.
   
   Oh, in that way, the issue is likely in how the base64 string is decoded or 
passed to OpenSSL. base64.b64decode() at line 361 doesn't strip whitespace from 
the base64 string before decoding. I doubt when private_key_content is stored 
in JSON (especially with newlines like \n), the base64 string may contain 
whitespace that causes decoding to fail or produce invalid bytes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to