{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-iot-sdk-csharp/issues/1109","repository_url":"https://api.github.com/repos/Azure/azure-iot-sdk-csharp","labels_url":"https://api.github.com/repos/Azure/azure-iot-sdk-csharp/issues/1109/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-iot-sdk-csharp/issues/1109/comments","events_url":"https://api.github.com/repos/Azure/azure-iot-sdk-csharp/issues/1109/events","html_url":"https://github.com/Azure/azure-iot-sdk-csharp/issues/1109","id":520268957,"node_id":"MDU6SXNzdWU1MjAyNjg5NTc=","number":1109,"title":"AMQP transport exception with provisioning device with X509 cert using X509Sample project code","user":{"login":"crpietschmann","id":392297,"node_id":"MDQ6VXNlcjM5MjI5Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/392297?v=4","gravatar_id":"","url":"https://api.github.com/users/crpietschmann","html_url":"https://github.com/crpietschmann","followers_url":"https://api.github.com/users/crpietschmann/followers","following_url":"https://api.github.com/users/crpietschmann/following{/other_user}","gists_url":"https://api.github.com/users/crpietschmann/gists{/gist_id}","starred_url":"https://api.github.com/users/crpietschmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crpietschmann/subscriptions","organizations_url":"https://api.github.com/users/crpietschmann/orgs","repos_url":"https://api.github.com/users/crpietschmann/repos","events_url":"https://api.github.com/users/crpietschmann/events{/privacy}","received_events_url":"https://api.github.com/users/crpietschmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-11-08T22:44:24Z","updated_at":"2019-11-11T21:42:54Z","closed_at":null,"author_association":"NONE","body":"I'm getting the following exception when I try to run the `/provisioning/Samples/device/X509Sample` project with a certificate and .pfx I generated using OpenSSL. I haven't changed any of the code for the sample app.\r\n\r\nhttps://github.com/Azure-Samples/azure-iot-samples-csharp/tree/master/provisioning/Samples/device/X509Sample\r\n\r\nAny direction on fixing this issue would be greatly appreciated. Thanks!\r\n\r\n```\r\n*****\r\nFound certificate: E7D3831605D817D3FAE5E84AD1F22AEB36EC225A O=Internet Widgits Pty Ltd, S=Some-State, C=AU; PrivateKey: True\r\nUsing certificate E7D3831605D817D3FAE5E84AD1F22AEB36EC225A O=Internet Widgits Pty Ltd, S=Some-State, C=AU\r\nRegistrationID = \r\nProvisioningClient RegisterAsync . . . Unhandled exception. Microsoft.Azure.Devices.Provisioning.Client.ProvisioningTransportException: AMQP transport exception\r\n ---> Microsoft.Azure.Amqp.AmqpException: The link address '0ne00090436/registrations/' did not match any of the expected formats.\r\n   at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception)\r\n   at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result)\r\n   at Microsoft.Azure.Amqp.AmqpObject.OpenAsyncResult.End(IAsyncResult result)\r\n   at Microsoft.Azure.Amqp.AmqpObject.EndOpen(IAsyncResult result)\r\n   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at Microsoft.Azure.Devices.Provisioning.Client.Transport.AmqpClientLink.OpenAsync(TimeSpan timeout)\r\n   at Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandlerAmqp.CreateLinksAsync(AmqpClientConnection connection, String linkEndpoint, String productInfo)\r\n   at Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandlerAmqp.RegisterAsync(ProvisioningTransportRegisterMessage message, CancellationToken cancellationToken)\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandlerAmqp.RegisterAsync(ProvisioningTransportRegisterMessage message, CancellationToken cancellationToken)\r\n   at Microsoft.Azure.Devices.Provisioning.Client.Samples.ProvisioningDeviceClientSample.RunSampleAsync() in /Users/Chris/Desktop/IoT/azure-iot-samples-csharp-master/provisioning/Samples/device/Common/ProvisioningDeviceClientSample.cs:line 31\r\n   at Microsoft.Azure.Devices.Provisioning.Client.Samples.Program.Main(String[] args) in /Users/Chris/Desktop/IoT/azure-iot-samples-csharp-master/provisioning/Samples/device/X509Sample/Program.cs:line 74\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-iot-sdk-csharp/issues/comments/552629677","html_url":"https://github.com/Azure/azure-iot-sdk-csharp/issues/1109#issuecomment-552629677","issue_url":"https://api.github.com/repos/Azure/azure-iot-sdk-csharp/issues/1109","id":552629677,"node_id":"MDEyOklzc3VlQ29tbWVudDU1MjYyOTY3Nw==","user":{"login":"crpietschmann","id":392297,"node_id":"MDQ6VXNlcjM5MjI5Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/392297?v=4","gravatar_id":"","url":"https://api.github.com/users/crpietschmann","html_url":"https://github.com/crpietschmann","followers_url":"https://api.github.com/users/crpietschmann/followers","following_url":"https://api.github.com/users/crpietschmann/following{/other_user}","gists_url":"https://api.github.com/users/crpietschmann/gists{/gist_id}","starred_url":"https://api.github.com/users/crpietschmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crpietschmann/subscriptions","organizations_url":"https://api.github.com/users/crpietschmann/orgs","repos_url":"https://api.github.com/users/crpietschmann/repos","events_url":"https://api.github.com/users/crpietschmann/events{/privacy}","received_events_url":"https://api.github.com/users/crpietschmann/received_events","type":"User","site_admin":false},"created_at":"2019-11-11T21:42:54Z","updated_at":"2019-11-11T21:42:54Z","author_association":"NONE","body":"@timtay-microsoft  Yes, I created a Group Enrollment in DPS using the Intermediate Certificate option. Since I don't have a CA certificate in this case, I need to do Intermediate Certificate since that doesn't require proof of possession to be done. And, I didn't set a Registration ID, as that is only done for Individual Enrollment.\r\n\r\nThanks! I really appreciate you taking a look at this. I'm excited to get this resolved."}}
{"actor":{"display_login":"crpietschmann"}}