terraform doesn't support PKCS#8 format API Keys #2127
Labels
awaiting-affected-resources
Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance
bug
Community Note
Terraform Version and Provider Version
Terraform v1.5.4
on linux_amd64
Affected Resource(s)
affected_resources = terraform
Terraform Configuration Files
N/A
Expected Behavior
As per issue: oracle/oci-go-sdk#242, terraform should support both PKCS#1 and PKCS#8 API key formats.
Actual Behavior
It doesn't support PKCS#8 format. If the API key is generated using openssl version 3 with the newer header, terraform plan/apply will fail with error: Error: can not create client, bad configuration: did not find a proper configuration for private key.
newer header format:
-----BEGIN ENCRYPTED PRIVATE KEY-----
Once created key with PKCS#1 format using openssl version 1 with the older header, terraform plan/apply works fine.
older header format:
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-256-CBC,
Steps to Reproduce
if the commands 1&2 were done using openssl version 1, terraform plan will succeed, if using openssl version 3, terraform plan will fail.
Important Factoids
References
The text was updated successfully, but these errors were encountered: