You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Michal Fojtik <mf...@redhat.com> on 2011/07/25 17:24:15 UTC

Deltacloud API with SSL

Hi,

I just quick tried running Deltacloud API with SSL option enabled in thin and it's
working perfectly. I though we can add these options to 'deltacloudd' runner in order
to give users access to SSL.

To try it you need to do following:

1. Install latest thin (I tried it with thin 1.2.11)
2. $ cd core/server 
2. Generate SSL certificates:

openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
cp server.key server.key.org
openssl rsa -in server.key.org -out server.key
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

3. Start Deltacloud API as following:

$ thin -R config.ru --ssl --ssl-key-file server.key --ssl-cert-file server.crt --ssl-verify start

4. Access Deltacloud API using browser:

https://localhost:3000/api

  -- Michal

------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org