Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Oracle Bare Metal - API authentication with C# - DotNet

edited Apr 13, 2017 7:00AM in OCI - General 2 comments

Summary

Oracle Bare Metal - API authentication with C# - DotNet

Content

Hi everyone,

Is there any samples I can follow to authenticate against the Bare Metal API using C# (or any other .Net language)?. I've tried to follow instructions from here https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/signingrequests.htm  but no luck so far (the generated signature I get is not the same as shown in the samples). Here's the code I'm using:

    class Program

    {

        static void Main(string[] args)

        {

            AsymmetricCipherKeyPair asymmetricCipherKeyPair;

            using (TextReader textReader = new StreamReader(@d:\keys\test.pem))

            {

                asymmetricCipherKeyPair = (AsymmetricCipherKeyPair)new PemReader(textReader).ReadObject();

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!