Hi,
i am trying to retrieve the certificate of a contact. It was set in Outlook by importing it in the certificate tab.
It is available by using PidTagUserX509Certificate on EWS, see
https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxoabk/e4de26c4-9bcb-4da2-99c6-5f67aebc221a
but i have to admit i do not understand how to handle the object as described in the documentation.
I try to base64-decode the retrieved data, then use a X509 CertificateFactory to read the certificate, the same as i handle the MSExchangeCertificate and UserSMIMECertificate values.
This leads to an parsing exception: error:0c0000be:ASN.1 encoding routines:OPENSSL_internal:WRONG_TAG
My Code runs on Android, but the issue should be universal.
You can find the base64 data here: https://pastebin.com/dCnMtjn4
Any idea how i could get to the certificate?