<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi Arif--</div>
<div> Are you using Keystone for authentication?</div>
<div> If so, you need to get an authentication token from Keystone and add it as a header to your curl command: -H "X-Auth-Token:<em>$TOKEN</em>".</div>
<div> You do not need to specify the project ID (-H 'X-Project-Id:12345'). The project ID will be based on your Keystone user's project ID.</div>
<div>--Dave</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>OpenStack Mailing List Archive <<a href="mailto:corpqa@gmail.com">corpqa@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>"<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, October 21, 2015 at 3:11 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>[openstack-dev] openstack-barbican-authenticate-keystone-barbican-command<br>
</div>
<div><br>
</div>
<div>
<div>Link: <a href="https://openstack.nimeyo.com/62868/?show=62868#q62868">https://openstack.nimeyo.com/62868/?show=62868#q62868</a><br>
From: marif82 <<a href="mailto:marif82@gmail.com">marif82@gmail.com</a>><br>
<br>
<p>Hi Asha,</p>
<p>I am also getting the same error when I am executing the curl command to create secret.
</p>
<p>bash-4.2$ curl -X POST -H 'content-type:application/json' -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><br>
Authentication requiredbash-4.2$</p>
<p>Can you please help me how you have solved this problem. I am using the safenet HSM for MKEK and HMAC and it generated successfully on HSM partition.</p>
<p>Please help me to resolve this issue.</p>
<p>Thanks & Regards,<br>
Arif</p>
</div>
</div>
</span>
</body>
</html>