<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, 255); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello Asha,</div>
<div><br>
</div>
<div>The root error here is that the stock plugin does not support generating 256 bit length asymmetric keys, rather only 1024, 2048 or 4096. Ideally you would have received a validation error when you POST-ed the order, but we have not yet integrated plugins
 with our validation process. </div>
<div><br>
</div>
<div>FYI, this link [1] shows the method that guides which algorithm parameters are supported by the default plugin.</div>
<div><br>
</div>
<div>Thanks for you patience,</div>
<div>John</div>
<div><br>
</div>
<div>[1]  <a href="https://github.com/openstack/barbican/blob/master/barbican/plugin/crypto/simple_crypto.py#L194">https://github.com/openstack/barbican/blob/master/barbican/plugin/crypto/simple_crypto.py#L194</a></div>
<div><br>
</div>
<div><br>
</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>Asha Seshagiri <<a href="mailto:asha.seshagiri@gmail.com">asha.seshagiri@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, April 7, 2015 at 12:23 PM<br>
<span style="font-weight:bold">To: </span>openstack-dev <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>>, Paul Kehrer <<a href="mailto:paul.kehrer@RACKSPACE.COM">paul.kehrer@RACKSPACE.COM</a>>, Adam Harwell <<a href="mailto:adam.harwell@RACKSPACE.COM">adam.harwell@RACKSPACE.COM</a>><br>
<span style="font-weight:bold">Cc: </span>John Wood <<a href="mailto:john.wood@rackspace.com">john.wood@rackspace.com</a>>, "Reller, Nathan S." <<a href="mailto:Nathan.Reller@jhuapl.edu">Nathan.Reller@jhuapl.edu</a>>, Douglas Mendizabal <<a href="mailto:douglas.mendizabal@RACKSPACE.COM">douglas.mendizabal@RACKSPACE.COM</a>>,
 "<a href="mailto:alee@redhat.com">alee@redhat.com</a>" <<a href="mailto:alee@redhat.com">alee@redhat.com</a>>, Alexis Lee <<a href="mailto:alexisl@hp.com">alexisl@hp.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: Barbican : Unable to reterieve asymmetric order request for rsa algorithm type<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi All ,
<div><br>
</div>
<div>I would like someone to provide the pointer so that I would look into this issue and confirm whether asymmetric order retrieval would be supported in Barbican.</div>
<div><br>
</div>
<div>Any help would be appreciated!</div>
<div><br>
</div>
<div>Thanks in advance,</div>
<div>Asha Seshagiri</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Apr 3, 2015 at 11:06 AM, Asha Seshagiri <span dir="ltr">
<<a href="mailto:asha.seshagiri@gmail.com" target="_blank">asha.seshagiri@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi All ,
<div><br>
</div>
<div>Could any one please let me know if Barbican would support asymmetric order retrieval and the request .</div>
<div><span class="">
<div style="font-size:12.8000001907349px">Please find the curl command and response for creating the order and retrieving  the order </div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">root@barbican:~# curl -X POST -H 'content-type:application/json' -H 'X-Project-Id: 12345' -d '{"type" : "asymmetric", "meta": {"name": "secretnamepk2", "algorithm": "rsa", "bit_length": 256, "mode": "cbc", "payload_content_type":
 "application/octet-stream"}}'<a href="http://localhost:9311/v1/orders" target="_blank">http://localhost:9311/v1/orders</a></div>
<div style="font-size:12.8000001907349px">{"order_ref": "<a href="http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c" target="_blank">http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c</a>"}root@barbican:~#</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">root@barbican:~# curl -H 'Accept: application/json' -H 'X-Project-Id:12345' <a href="http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c" target="_blank">http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c</a></div>
<div style="font-size:12.8000001907349px">{"status": "ERROR", "updated": "2015-03-30T21:36:38.102832", "created": "2015-03-30T21:36:38.083428", "order_ref": "<a href="http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c" target="_blank">http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c</a>",
 "meta": {"name": "secretnamepk2", "algorithm": "rsa", "payload_content_type": "application/octet-stream", "mode": "cbc", "bit_length": 256, "expiration": null}, "<b>error_status_code": "400", "error_reason": "Process TypeOrder issue seen - No plugin was found
 that could support your request.", "type": "asymmetric"}</b>root@barbican:~#</div>
<div style="font-size:12.8000001907349px"><br>
</div>
</span>
<div style="font-size:12.8000001907349px"><b>It seems that we are unable to reterive the asymmetric order request</b></div>
<span class="">
<div style="font-size:12.8000001907349px">Could any one please help.</div>
</span>
<div style="font-size:12.8000001907349px">Any Help would be appreciated.</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">Thanks in Advance </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="h5">On Mon, Mar 30, 2015 at 4:42 PM, Asha Seshagiri <span dir="ltr"><<a href="mailto:asha.seshagiri@gmail.com" target="_blank">asha.seshagiri@gmail.com</a>></span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div class="h5">
<div>Hi All ,</div>
<div><br>
</div>
<div>I would like to know whether Barbican supports asymmetric order request .</div>
<div>Please find the curl command and response for creating the order and retrieving  the order </div>
<div><br>
</div>
<div>root@barbican:~# curl -X POST -H 'content-type:application/json' -H 'X-Project-Id: 12345' -d '{"type" : "asymmetric", "meta": {"name": "secretnamepk2", "algorithm": "rsa", "bit_length": 256, "mode": "cbc", "payload_content_type": "application/octet-stream"}}'
<a href="http://localhost:9311/v1/orders" target="_blank">http://localhost:9311/v1/orders</a></div>
<div>{"order_ref": "<a href="http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c" target="_blank">http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c</a>"}root@barbican:~#</div>
<div><br>
</div>
<div>root@barbican:~# curl -H 'Accept: application/json' -H 'X-Project-Id:12345' <a href="http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c" target="_blank">
http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c</a></div>
<div>{"status": "ERROR", "updated": "2015-03-30T21:36:38.102832", "created": "2015-03-30T21:36:38.083428", "order_ref": "<a href="http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c" target="_blank">http://localhost:9311/v1/orders/f9870bb5-4ba3-4b19-9fe3-bb0c2a53557c</a>",
 "meta": {"name": "secretnamepk2", "algorithm": "rsa", "payload_content_type": "application/octet-stream", "mode": "cbc", "bit_length": 256, "expiration": null}, "<b>error_status_code": "400", "error_reason": "Process TypeOrder issue seen - No plugin was found
 that could support your request.", "type": "asymmetric"}</b>root@barbican:~#</div>
<div><br>
</div>
<div>Could any one please help.</div>
<div>Thanks in Advance </div>
</div>
</div>
<span class=""><span><font color="#888888">-- <br>
<div>
<div><em>Thanks and Regards,</em></div>
<div><em>Asha Seshagiri</em></div>
</div>
</font></span></span></div>
</blockquote>
</div>
<span class=""><br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>
<div><em>Thanks and Regards,</em></div>
<div><em>Asha Seshagiri</em></div>
</div>
</span></div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div><em>Thanks and Regards,</em></div>
<div><em>Asha Seshagiri</em></div>
</div>
</div>
</div>
</div>
</div>
</span>
</body>
</html>