Comments (7)
Hi @i542873057
What version of the Dotnet SDK are you using?
from oci-dotnet-sdk.
Hi @i542873057
What version of the Dotnet SDK are you using?
Thank for your Reply
Version is 24.1.0
Installed by Nuget
from oci-dotnet-sdk.
@i542873057
It looks the SDK does not like the pem file you are using here. Can you share the process you used to create yours?
Preferred way for creating Pem keys:-
https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm
from oci-dotnet-sdk.
@i542873057
It looks the SDK does not like the pem file you are using here. Can you share the process you used to create yours?Preferred way for creating Pem keys:-
https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm
My os version is centos 8
This is my steps:
-
mkdir ~/.oci
-
openssl genrsa -out ~/.oci/oci_api_key.pem 2048
-
openssl rsa -pubout -in ~/.oci/oci_api_key.pem -out ~/.oci/oci_api_key_public.pem
-
move to console -->user setting---->api keys--->add api key then upload the oci_api_key_public.pem,it will show me the config content, and i copy that in to my linux path '~/.oci/config'
-
modify the key_file params in config "~/.oci/oci_api_key.pem"
follow the Previous steps . Then i run my code and throw the "BouncyCastle Error" you see at the begin
from oci-dotnet-sdk.
Hi @i542873057
I cannot reproduce this on version 24.1.0 but we have this issue in older versions.
Can you again check the version of OCI.DotNetSDK.Common nuget package in your project?
$ dotnet list package
Project 'TestConsoleApp' has the following package references
[net5.0]:
Top-level Package Requested Resolved
> OCI.DotNetSDK.Common 24.1.0 24.1.0
> OCI.DotNetSDK.Identity 24.1.0 24.1.0
> OCI.DotNetSDK.ResourceSearch 24.1.0 24.1.0
from oci-dotnet-sdk.
@i542873057 looks like you are generating the API key locally yourself -- do you get the same issue if you generate the API key through the OCI Console, and use that key with the .NET SDK? See https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#two section 'Generating an API Signing Key (Console)' for how to do that.
from oci-dotnet-sdk.
@i542873057 looks like you are generating the API key locally yourself -- do you get the same issue if you generate the API key through the OCI Console, and use that key with the .NET SDK? See https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#two section 'Generating an API Signing Key (Console)' for how to do that.
Whoo~Thanks !
EveryThing is Ok when using the pem download from console
from oci-dotnet-sdk.
Related Issues (20)
- Unable to get the secret value with secret OCID HOT 1
- DataSafe-models-LifecycleState invalid enum value HOT 13
- support for Oracle Container Cloud Service HOT 5
- Getting Bucket Size HOT 8
- GetNetworkFirewallPolicy - not everything in output HOT 13
- LogAnalytics - ListLabelPriorities - conversion failure HOT 3
- LogAnalytics - ListScheduledTasks - Enum parameter issue HOT 5
- AppDependencyManagement - 2 invalid API definitions in SDK HOT 5
- Datasafe - ListAlertPolicies HOT 13
- OrganizationsClient -> ListOrganizations (rootId), stuck when listing All HOT 7
- No version bump for DLLs
- How to get the Url of a storage object? HOT 1
- IdentityDomains List functions refer to var baseUri which does not exist HOT 2
- Missing OkeWorkloadIdentityAuthenticationDetailsProvider HOT 3
- OVCP ListEsxiHostsRequest fails with invalid params
- List & Get CrossConnects and CrossConnectGroups failing
- Identity Domains, where are Applications? HOT 1
- Calling GetSecretBundleByName from behind a proxy HOT 3
- PrivateKeySupplier missing support for AsymmetricKeyParameter HOT 1
- Nonseekable stream can not be uploaded to Object storage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oci-dotnet-sdk.