<div class="gmail_extra">In occi, I add rules in apache to work well.</div><div class="gmail_extra"><br></div><div class="gmail_extra"># vim /etc/httpd/conf.d/ssl.conf </div><div class="gmail_extra"><div class="gmail_extra">
List 443</div><div class="gmail_extra"><VirtualHost _default_:443></div><div>ServerName localhost</div></div><div class="gmail_extra"><div class="gmail_extra"><br></div></div><div class="gmail_extra"><div class="gmail_extra">
ProxyPass /compute <a href="http://127.0.0.1:4567/compute">http://127.0.0.1:4567/compute</a></div><div class="gmail_extra">ProxyPass /storage <a href="http://127.0.0.1:4567/storage">http://127.0.0.1:4567/storage</a></div>
<div class="gmail_extra">ProxyPass /network <a href="http://127.0.0.1:4567/network">http://127.0.0.1:4567/network</a></div><div class="gmail_extra">ProxyPass / <a href="http://127.0.0.1:4567">http://127.0.0.1:4567</a></div>
<div><br></div><div>In occi tools, I use the password  without sha1</div><div><br></div><div><div>[oneadmin@lahpc_cloud_server ~]$ cat $ONE_AUTH </div><div>oneadmin:password</div></div><div><br></div><div><div>$ occi-compute list -U oneadmin  -P password --url=<a href="https://localhost">https://localhost</a></div>
<div><COMPUTE_COLLECTION></div><div>  <COMPUTE href='<a href="https://localhost//compute/74">https://localhost//compute/74</a>' name='MyCompute'/></div><div>  <COMPUTE href='<a href="https://localhost//compute/75">https://localhost//compute/75</a>' name='MyCompute'/></div>
<div>  <COMPUTE href='<a href="https://localhost//compute/76">https://localhost//compute/76</a>' name='MyCompute'/></div><div></COMPUTE_COLLECTION></div></div><div class="gmail_extra"><br></div>
<div class="gmail_extra">But in curl, I need to use the password with sha1</div><div class="gmail_extra"><div class="gmail_extra">[oneadmin@lahpc_cloud_server ~]$ oneuser show | grep -i  password </div><div class="gmail_extra">
PASSWORD       : <span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8</span></div><div class="gmail_extra">
<span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_extra"><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><div class="gmail_extra">
<p style="margin:0px 0px 0px 0px;font:13.0px Arial;color:#232323">[oneadmin@lahpc_cloud_server ~]$ curl -k -u oneadmin:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 <a href="https://localhost/compute">https://localhost/compute</a></p>

<p style="margin:0px 0px 0px 0px;font:13.0px Arial;color:#232323"><COMPUTE_COLLECTION><COMPUTE href="<a href="https://localhost//compute/74">https://localhost//compute/74</a>" name="MyCompute"/><COMPUTE href="<a href="https://localhost//compute/75">https://localhost//compute/75</a>" name="MyCompute"/><COMPUTE href="<a href="https://localhost//compute/76">https://localhost//compute/76</a>" name="MyCompute"/></COMPUTE_COLLECTION>   </p>
</div></span></div><div><br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><br><div class="gmail_quote">Em 23 de abril de 2012 14:53, Rolandas Naujikas <span dir="ltr"><<a href="mailto:rolandas.naujikas@mif.vu.lt" target="_blank">rolandas.naujikas@mif.vu.lt</a>></span> escreveu:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 2012-04-23 20:30, Charles Rodamilans wrote:<br>
> Hi Rolandas,<br>
><br>
> this solved the problem.<br>
><br>
> Thanks,<br>
><br>
> Charles Rodamilans<br>
><br>
> Final configuration:<br>
><br>
> [root@lahpc_cloud_server ~]# vim /etc/httpd/conf.d/ssl.conf<br>
> Listen 443<br>
> <VirtualHost _default_:443><br>
> ServerName localhost<br>
> ProxyPass / <a href="http://127.0.0.1:4567" target="_blank">http://127.0.0.1:4567</a><br>
><br>
> [oneadmin@lahpc_cloud_server ~]$ vim /etc/one/econe.conf<br>
> :server: 127.0.0.1<br>
> :port: 4567<br>
> :ssl_server: <a href="https://localhost/" target="_blank">https://localhost/</a><br>
<br>
</div>The same is for OCCI also.<br>
<br>
In econe-server.rb<br>
...<br>
    uri = URI.parse(conf[:ssl_server])<br>
...<br>
In OCCIServer.rb<br>
...<br>
        if config[:ssl_server]<br>
            @base_url=config[:ssl_server]<br>
        else<br>
            @base_url="http://#{config[:server]}:#{config[:port]}"<br>
        end<br>
...<br>
<br>
Rolandas Naujikas<br>
<div class="im"><br>
> [oneadmin@lahpc_cloud_server ~]$ econe-describe-images  -U<br>
</div>> <a href="https://localhost-K" target="_blank">https://localhost-K</a> oneadmin -S<br>
<div class="HOEnZb"><div class="h5">> 5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8<br>
> oneadmin     ami-00000019  available<br>
> 17338366ceac9a69c73d2f1c1a7677d2<br>
> oneadmin     ami-00000020  available<br>
> 91d34ab841bd78e683dab4f345eae246<br>
> oneadmin     ami-00000021  available<br>
> 6dbcca995956233be8a2a922c643944f<br>
> oneadmin     ami-00000022  available<br>
> 37ffe10a30a795c2340c8ea19acfcc48<br>
><br>
><br>
> Em 23 de abril de 2012 13:38, Rolandas Naujikas <<a href="mailto:rolandas.naujikas@mif.vu.lt">rolandas.naujikas@mif.vu.lt</a><br>
>> escreveu:<br>
><br>
>> On 2012-04-23 19:28, Charles Rodamilans wrote:<br>
>>> Hi Daniel,<br>
>>><br>
>>> I used port 8443, for sugestion in<br>
>>><br>
>> <a href="http://opennebula.org/documentation:archives:rel3.2:ec2qcg#configuring_a_ssl_proxy" target="_blank">http://opennebula.org/documentation:archives:rel3.2:ec2qcg#configuring_a_ssl_proxy</a><br>
>>><br>
>>> I changed  :ssl_server parameter to localhost:8443, restart econe-server,<br>
>>> and the problem continues (Test 1).<br>
>>> I changed the configuration to 443 in ssl/httpd and econe-server, restart<br>
>>> httpd and econe-server, and the problem continues too (Test 2 and 3).<br>
>><br>
>> At least in opennebula 3.2 you have put full URL in ssl_server parameter<br>
>> like:<br>
>><br>
>> :ssl_server: <a href="https://cloud.example.com/" target="_blank">https://cloud.example.com/</a><br>
>><br>
>> Where <a href="http://cloud.example.com" target="_blank">cloud.example.com</a> is external hostname of reverse proxy.<br>
>><br>
>> Rolandas<br>
>><br>
>>> Cheers<br>
>>><br>
>>> Charles Rodamilans<br>
>><br>
><br>
<br>
</div></div></blockquote></div><br></div>