Link: https://openstack.nimeyo.com/62868/?show=63238#c63238<br />
From: marif82 <marif82@gmail.com><br />
<br />
<p>Hi Dave,</p>
<p>Thanks for your response.<br>
I am the beginner in OpenStack so I don't know how to get Keystone token so I searched and found "admin<em>token = a682f596-76f3-11e3-b3b2-e716f9080d50" in keystone.conf file. As you suggested i have removed the project</em>id from curl command and X-Auth-Token in curl command as per your suggestion and I am still getting the same error, please see below:</p>
<p>bash-4.2$ curl -X POST -H 'content-type:application/json' -H 'X-Auth-Token:a682f59676f311e3b3b2e716f9080d50' -H 'X-Project-Id:12345' -d '{"payload": "my-secret-here", "payload<em>content</em>type": "text/plain"}' <a rel="nofollow" href="http://localhost:9311/v1/secrets">http://localhost:9311/v1/secrets</a> -v<br>
* About to connect() to localhost port 9311 (<a rel="nofollow" href="https://openstack.nimeyo.com/tag/0">#0</a>)<br>
* Trying ::1...<br>
* Connection refused<br>
* Trying 127.0.0.1...<br>
* Connected to localhost (127.0.0.1) port 9311 (<a rel="nofollow" href="https://openstack.nimeyo.com/tag/0">#0</a>)</p>
<blockquote>
<div> <p>POST /v1/secrets HTTP/1.1<br>
User-Agent: curl/7.29.0<br>
Host: localhost:9311<br>
Accept: <em>/</em><br>
content-type:application/json<br>
X-Auth-Token:a682f59676f311e3b3b2e716f9080d50<br>
X-Project-Id:12345<br>
Content-Length: 67</p></div>
</blockquote>
<p>* upload completely sent off: 67 out of 67 bytes<br>
< HTTP/1.1 401 Unauthorized<br>
< Content-Type: text/html; charset=UTF-8<br>
< Content-Length: 23<br>
< WWW-Authenticate: Keystone uri='<a rel="nofollow" href="http://localhost:35357">http://localhost:35357</a>'<br>
< Connection: close<br>
<<br>
* Closing connection 0<br>
Authentication requiredbash-4.2$</p>
<p>Please help me.</p>
<p>Regards,<br>
Arif</p>