Oracle Bare Metal - API authentication with C# - DotNet
Summary
Oracle Bare Metal - API authentication with C# - DotNetContent
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();