I am trying to implement a multiplatform device/client certificate chck in my app. I want to implement for Windows and Mac, so the common implementation in c++ with few platform specific code. I have OpenSSL integrated too.
I have Client cert installed in Windows personal store and for Mac in login key chain.
I have a the CA chain as form of .pem file.
I wanted to get the leaf CA from Pem file using openssl, than use the issuer name and use platform specific code to get matching client cert from device. Than I want to get the context of clinet cert and use openssl to verify againt the CA chain
The problem for me here is, 1. how to get the leaf from the PEM 2. How to retrive the public part of installed client cert in both Windos/mac?
Regards, Birajendu