title: Wordpress json api error while generate_auth_cookie
body: <p>I'm having problem with wordpress json Api When login the user. Currently I'm Using Wordpress version 4.5.1 with listed below plugin:</p>
  
  <p><a href="https://i.stack.imgur.com/Bpmu1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bpmu1.png" alt=""></a></p>
  
  <p>Here are the step I follow:</p>
  
  <p>1) Generate nonce</p>
  
  <p><a href="http://example.org/api/get_nonce/?controller=user&amp;method=generate_auth_cookie" rel="nofollow noreferrer">http://example.org/api/get_nonce/?controller=user&amp;method=generate_auth_cookie</a></p>
  
  <p>Below is Response:</p>
  
  <pre><code>{"status":"ok","controller":"user","method":"generate_auth_cookie","nonce":"4d080ff7b8"}
  </code></pre>
  
  <p>2) Generate Auth Cookie</p>
  
  <p><a href="http://example.org/api/user/generate_auth_cookie/?nonce=+4d080ff7b8&amp;username=example&amp;password=example" rel="nofollow noreferrer">http://example.org/api/user/generate_auth_cookie/?nonce=+4d080ff7b8&amp;username=example&amp;password=example</a></p>
  
  <p>Below is Response:</p>
  
  <pre><code>{"status":"error","error":"SSL is not enabled. Either use _https_ or provide 'insecure' var as insecure=cool to confirm you want to use http protocol."}
  </code></pre>
  
  <p>Why I'm Getting this error?</p>