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

Received Response
edited Apr 13, 2017 7:00AM in Oracle Cloud Infrastructure - General 2 comments


Oracle Bare Metal - API authentication with C# - DotNet


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  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.


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