title: AWS Missing Authentication Token
body: <p>I am following <a href="http://docs.aws.amazon.com/iot/latest/developerguide/iot-device-sdk-node.html" rel="nofollow noreferrer">this tutorial</a> for connecting <code>Raspberry Pi</code> to <code>AWS IoT</code> using Node.js SDK. I see the following in <code>vim ~/.aws/credentials</code></p>
  
  <pre><code>[default]
  aws_access_key_id = SOMETHING
  aws_secret_access_key = SOMETHINGELSE
  </code></pre>
  
  <p>When I enter the command <code>aws iot describe-endpoint</code> I get the following response:</p>
  
  <pre><code>{
      "endpointAddress": "A34SXNTM6AT7XH.iot.us-west-2.amazonaws.com"
  }
  </code></pre>
  
  <p>However when I browse to that URL: <a href="https://a34sxntm6at7xh.iot.us-west-2.amazonaws.com/" rel="nofollow noreferrer">https://a34sxntm6at7xh.iot.us-west-2.amazonaws.com/</a>
  I get the following error:</p>
  
  <pre><code>Missing Authentication Token
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/i9Sr9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i9Sr9.png" alt="enter image description here"></a></p>
  
  <p>Any idea what could be wrong and how could it be solved?</p>
  
  <p><a href="https://i.stack.imgur.com/gmyOB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gmyOB.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ml39z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ml39z.png" alt="enter image description here"></a></p>
  
  <p>Here's the files in the <code>~/certs</code> folder:</p>
  
  <pre><code>pi@raspberrypi:~/certs $ ls
  certificate.pem.crt  private.pem.key  public.pem.key  root-CA.pem
  </code></pre>