Open ak-emphere opened 2 days ago
Hi @ak-emphere - This is a known issue where Go SDK does not support encrypted PKCS8 keys. Are you also using PKCS8 keys ?
Yes, its PKCS8 @jyotisaini . Is there a workaround I can use here?
No We don't have a workaround. but my team is working on adding this support which is currently in testing phase. We are targeting a release by end of this month.
Thanks for timeline . Would it be possible to link this issue to that upcoming release ? Or is there another issue i can subscribe to?
I don't think there is another issue for this. We can link this issue with the upcoming release.
The common.DefaultConfigProvider() in the OCI Go SDK is failing to properly read an encrypted private key from the default configuration file, while the OCI CLI works correctly with the same configuration.
Environment
OCI Go SDK Version: v65.75.2 Go Version: go1.22.4 darwin/arm64
Steps to Reproduce
Verify OCI cli works
This command succeeds and returns a list of compartments
Go code
Expected Behavior The Go program should successfully create an identity client, just as the CLI is able to use the same configuration to make API calls.
Actual Behavior The Go program fails with an error:
Additional Context
Questions