ABM API Problems with C# and PEM file

I am needing to access the ABM API via C#. Searching has directed me to use BouncyCastle. I have downloaded the PEM file. However, using the following:

using (var reader = File.OpenText(pemFilePath))
{
    var pemReader = new PemReader(reader);
    var keyObject = pemReader.ReadObject();

I get the error "problem creating EC private key: System.NullReferenceException: Object reference not set to an instance of an object."

Thanks for the post!

You should check with the support resources provided by the 3rd party to get assistance with their software as it seems like your are using MAUI or Xamarin?

Unless another developer in the forums has experience with the third-party and can provide assistance.

Albert Pascual
  Worldwide Developer Relations.

ABM API Problems with C# and PEM file
 
 
Q