locked
Exception while trying to enroll the simulated device RRS feed

  • Question

  • Hello,
    I’m trying to follow the IOT Provisioning Quickstarts tutorial (Create and provision a simulated TPM device using C# device SDK for IoT Hub Device Provisioning Service)
    I keep getting the following exception while trying to enroll the simulated device.
    Can you please help me figuring what is the problem?
    I’m pretty sure that I entered a valid Endorsement key and Registration ID as displayed in the example command widow.

    The Exception I get:

    Microsoft.Azure.Devices.Provisioning.Client.ProvisioningTransportException
    HResult=0x80131500
    Message=HTTP transport exception: malformed server error message: '

    <title>Certificate verification error</title>

    Certificate verification error

        <div class="row">
                <p class="label">Overview:</p>
                <p class="item">Access denied. Certificate validation failed for the following URL: global.azure-devices-provisioning.net </p>
        </div>
        <div class="row">
                <p class="label">Details:</p>
                <p class="item"><b><i>VERIFY DENY: depth=0</i></b>, Client Certificate requested: "global.azure-devices-provisioning.net"</p>
        </div>
    
        <div id="options">
                <p class="label">Options:</p>
                                 <form name="ask" method="get" action="https://global.azure-devices-provisioning.net/%24%24%24%26%3f%26%3f%24%24%24">
                                <INPUT type=hidden value="ask_add" name=cmd>
                                <INPUT type=hidden value="global.azure-devices-provisioning.net_a67e6792_200005DD67F9127C02CA3248A000000005DD67" name=arg>
                                <!--cmd=ask_add&arg=global.azure-devices-provisioning.net_a67e6792_200005DD67F9127C02CA3248A000000005DD67&sid=-->
                                <INPUT type=hidden value="F0D9B52052B3FF9D2D974E51505AFD3CA941A3A9" name=sid>
                                <INPUT type=hidden value="https://global.azure-devices-provisioning.net/0ne0007BF2B/registrations/testtpmregistration1/register?api-version=2019-03-31" name=url>
                                <input type="submit" class="button" name="Override" value="   Visit Site anyway   "       >
                                </form><p class="item">Pressing the button allows you to visit the website although the certificate is not valid.</p> 
                <form action=""><input type="button" class="button" onclick="history.back();" value="   Go Back   "></form><p class="item">Click to return to the previous page:</p>
                                <p class="last-item">To find out more about why access was denied, please contact your administrator. The reference ID is 148.</p>
        </div>
    
        <div><img class="logo" title="Forcepoint" src="https://global.azure-devices-provisioning.net/%24%24%24%26%3f%26%3f%24%24%24?cmd=get_file&arg=images/wslogo_block_page.png&sid=6B5C8AACCD71D149375005FB9F726AF00676BE8E" alt="Forcepoint Logo">
                <div style="clear: both;  height:1px;"></div>
        </div>
    
    ' Source=Microsoft.Azure.Devices.Provisioning.Transport.Http StackTrace: at Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandlerHttp.d__3.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Microsoft.Azure.Devices.Provisioning.Client.Samples.ProvisioningDeviceClientSample.d__3.MoveNext() in C:\IoT\azure-iot-samples-csharp-master\provisioning\Samples\device\Common\ProvisioningDeviceClientSample.cs:line 31 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Devices.Provisioning.Client.Samples.Program.Main(String[] args) in C:\IoT\azure-iot-samples-csharp-master\provisioning\Samples\device\TpmSample\Program.cs:line 71

    Inner Exception 1:
    JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

    Monday, September 23, 2019 1:55 PM

All replies