Book Image

OpenStack Cloud Computing Cookbook - Second Edition

By : Kevin Jackson, Cody Bunch
Book Image

OpenStack Cloud Computing Cookbook - Second Edition

By: Kevin Jackson, Cody Bunch

Overview of this book

<p>OpenStack is an open source cloud operating stack that was born from Rackspace and NASA and became a global success, developed by scores of people around the globe and backed by some of the leading players in the cloud space today.<br /><br />OpenStack Cloud Computing Cookbook, Second Edition will show you exactly how to install the components that are required to make up a private cloud environment. You will learn how to set up an environment that you manage just as you would a public cloud provider like Rackspace with the help of experienced OpenStack administrators and architects.<br /><br />We begin by configuring the key components such as identity, image compute, and storage in a safe, virtual environment that we will then build on this throughout the book. The book will also teach you about provisioning and managing OpenStack in the datacenter using proven DevOps tools and techniques.<br /><br />From installing or creating a sandbox environment using Vagrant and VirtualBox to installing OpenStack in the datacenter, from understanding logging to automating OpenStack installations, whatever level of experience or interest you have with OpenStack there is a chapter for you. Installation steps cover compute, object storage, identity, block storage volumes, image, horizon, software defined networking and DevOps tools for automating your infrastructure OpenStack Cloud Computing Cookbook, Second edition gives you clear step-by-step instructions to installing and running your own private cloud.</p>
Table of Contents (20 chapters)
OpenStack Cloud Computing Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up SSL access


Setting up SSL access provides secure access between the client and our OpenStack Object Storage environment in exactly the same way SSL provides secure access to any other web service. To do this, we configure our proxy server with SSL certificates.

Getting ready

To begin with, log in to our swift server.

How to do it...

Configuration of OpenStack Object Storage to secure communication between the client and the proxy server is done as follows:

  1. In order to provide SSL access to our proxy server, we first create the certificates, as follows:

    cd /etc/swift
    sudo openssl req -new -x509 -nodes -out cert.crt -keyout cert.key
    
  2. We need to answer the following questions that the certificate process asks us:

  3. Once created, we configure our proxy server to use the certificate and key by editing the /etc/swift/proxy-server.conf file:

    bind_port = 443
    cert_file = /etc/swift/cert.crt
    key_file = /etc/swift/cert.key
  4. With this in place, we can restart the proxy server, using the swift-init command...