<div dir="ltr">Thanks a lot John for your time and response.<div>It helped me and answered my query<br><div><br></div><div>Thanks and Regards,</div><div>Asha Seshagiri<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 7, 2015 at 1:58 PM, John Wood <span dir="ltr"><<a href="mailto:john.wood@rackspace.com" target="_blank">john.wood@rackspace.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;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" target="_blank">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>
<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" target="_blank">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" target="_blank">openstack-dev@lists.openstack.org</a>>, Paul Kehrer <<a href="mailto:paul.kehrer@RACKSPACE.COM" target="_blank">paul.kehrer@RACKSPACE.COM</a>>, Adam Harwell <<a href="mailto:adam.harwell@RACKSPACE.COM" target="_blank">adam.harwell@RACKSPACE.COM</a>><br>
<span style="font-weight:bold">Cc: </span>John Wood <<a href="mailto:john.wood@rackspace.com" target="_blank">john.wood@rackspace.com</a>>, "Reller, Nathan S." <<a href="mailto:Nathan.Reller@jhuapl.edu" target="_blank">Nathan.Reller@jhuapl.edu</a>>, Douglas Mendizabal <<a href="mailto:douglas.mendizabal@RACKSPACE.COM" target="_blank">douglas.mendizabal@RACKSPACE.COM</a>>,
 "<a href="mailto:alee@redhat.com" target="_blank">alee@redhat.com</a>" <<a href="mailto:alee@redhat.com" target="_blank">alee@redhat.com</a>>, Alexis Lee <<a href="mailto:alexisl@hp.com" target="_blank">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><div class="h5">
<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>
<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>
<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>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>
<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><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><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>
<div><em>Thanks and Regards,</em></div>
<div><em>Asha Seshagiri</em></div>
</div>
</div>
</div>
</div>
</div>
</div></div></span>
</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>