{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/752","repository_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/752/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/752/comments","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/752/events","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/752","id":250055496,"number":752,"title":"Using a certificate with non-exportable private key with AcquireTokenAsync(string resource, IClientAssertionCertificate clientCertificate) on dotNet 4.7","user":{"login":"EranBE","id":13161994,"avatar_url":"https://avatars3.githubusercontent.com/u/13161994?v=4","gravatar_id":"","url":"https://api.github.com/users/EranBE","html_url":"https://github.com/EranBE","followers_url":"https://api.github.com/users/EranBE/followers","following_url":"https://api.github.com/users/EranBE/following{/other_user}","gists_url":"https://api.github.com/users/EranBE/gists{/gist_id}","starred_url":"https://api.github.com/users/EranBE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EranBE/subscriptions","organizations_url":"https://api.github.com/users/EranBE/orgs","repos_url":"https://api.github.com/users/EranBE/repos","events_url":"https://api.github.com/users/EranBE/events{/privacy}","received_events_url":"https://api.github.com/users/EranBE/received_events","type":"User","site_admin":false},"labels":[{"id":94905053,"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/labels/bug","name":"bug","color":"e11d21","default":true},{"id":138191637,"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/labels/P1","name":"P1","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":{"login":"kpanwar","id":5713915,"avatar_url":"https://avatars2.githubusercontent.com/u/5713915?v=4","gravatar_id":"","url":"https://api.github.com/users/kpanwar","html_url":"https://github.com/kpanwar","followers_url":"https://api.github.com/users/kpanwar/followers","following_url":"https://api.github.com/users/kpanwar/following{/other_user}","gists_url":"https://api.github.com/users/kpanwar/gists{/gist_id}","starred_url":"https://api.github.com/users/kpanwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpanwar/subscriptions","organizations_url":"https://api.github.com/users/kpanwar/orgs","repos_url":"https://api.github.com/users/kpanwar/repos","events_url":"https://api.github.com/users/kpanwar/events{/privacy}","received_events_url":"https://api.github.com/users/kpanwar/received_events","type":"User","site_admin":false},"assignees":[{"login":"kpanwar","id":5713915,"avatar_url":"https://avatars2.githubusercontent.com/u/5713915?v=4","gravatar_id":"","url":"https://api.github.com/users/kpanwar","html_url":"https://github.com/kpanwar","followers_url":"https://api.github.com/users/kpanwar/followers","following_url":"https://api.github.com/users/kpanwar/following{/other_user}","gists_url":"https://api.github.com/users/kpanwar/gists{/gist_id}","starred_url":"https://api.github.com/users/kpanwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpanwar/subscriptions","organizations_url":"https://api.github.com/users/kpanwar/orgs","repos_url":"https://api.github.com/users/kpanwar/repos","events_url":"https://api.github.com/users/kpanwar/events{/privacy}","received_events_url":"https://api.github.com/users/kpanwar/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/milestones/3","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/milestone/3","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/milestones/3/labels","id":827923,"number":3,"title":"ASAP","description":"","creator":{"login":"RandalliLama","id":4307330,"avatar_url":"https://avatars0.githubusercontent.com/u/4307330?v=4","gravatar_id":"","url":"https://api.github.com/users/RandalliLama","html_url":"https://github.com/RandalliLama","followers_url":"https://api.github.com/users/RandalliLama/followers","following_url":"https://api.github.com/users/RandalliLama/following{/other_user}","gists_url":"https://api.github.com/users/RandalliLama/gists{/gist_id}","starred_url":"https://api.github.com/users/RandalliLama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandalliLama/subscriptions","organizations_url":"https://api.github.com/users/RandalliLama/orgs","repos_url":"https://api.github.com/users/RandalliLama/repos","events_url":"https://api.github.com/users/RandalliLama/events{/privacy}","received_events_url":"https://api.github.com/users/RandalliLama/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2014-10-15T20:42:03Z","updated_at":"2017-09-02T00:36:08Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-08-14T14:52:42Z","updated_at":"2017-09-04T08:48:05Z","closed_at":null,"author_association":"NONE","body":"Related to this issue - [https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/708](url)\r\n\r\nIf you target .Net 4.7 and try to use a certificate client assertion with a certificate that has a non-exportable private key, a `CryptographicException` will be thrown since the current code calls `certificate.PrivateKey.ToXmlString(true)` which cannot export the private key.\r\nPrior to .Net 4.7 the same certificate worked since it returned `RSACryptoServiceProvider` as its private key instance."},"comment":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/comments/326904096","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/752#issuecomment-326904096","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/752","id":326904096,"user":{"login":"dmcweeney","id":1087374,"avatar_url":"https://avatars3.githubusercontent.com/u/1087374?v=4","gravatar_id":"","url":"https://api.github.com/users/dmcweeney","html_url":"https://github.com/dmcweeney","followers_url":"https://api.github.com/users/dmcweeney/followers","following_url":"https://api.github.com/users/dmcweeney/following{/other_user}","gists_url":"https://api.github.com/users/dmcweeney/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcweeney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcweeney/subscriptions","organizations_url":"https://api.github.com/users/dmcweeney/orgs","repos_url":"https://api.github.com/users/dmcweeney/repos","events_url":"https://api.github.com/users/dmcweeney/events{/privacy}","received_events_url":"https://api.github.com/users/dmcweeney/received_events","type":"User","site_admin":false},"created_at":"2017-09-04T08:48:05Z","updated_at":"2017-09-04T08:48:05Z","author_association":"NONE","body":"I had to revert back to net fx 4.61... so cannot test this... Sorry"}}
{"actor":{"display_login":"dmcweeney"}}