Dynamics CRM Plugin: Calling Web API with certificate in sandbox mode
trying to call an web API using client certificate in a plugin (D365 online) but i have this error “Permission request type ‘System.Security.Permissions.KeyContainerPermission, mscorlib, Version=4.0.0.0, ” (in this line X509Certificate2 certificate = new X509Certificate2(certificateBytes);)
when i load the certificate and block me to get a response from the API also i tried to call this api from a console application and got a response this my code
PS: my api use two authentification a certifcate and a basic user : if someone worked in this or have a solution please share it thanks