227
Chapter 15: Advanced Configuration
15.7 Secure Sockets Layer (SSL) Support
SecureSocketsLayer(SSL)isaprotocoldevelopedbyNetscapefortransmittingprivatedocumentsviatheInternet.SSL
works by using a private key to encrypt data that's transferred over the SSL connection.
TheConsoleServerincludesOpenSSL.TheOpenSSLProjectisacollaborativeefforttodeveloparobust,commercial-grade,
full-featured,andOpenSourcetoolkitimplementingtheSecureSocketsLayer(SSLv2/v3)andTransportLayerSecurity(TLS
v1)protocolsaswellasafull-strengthgeneralpurposecryptographylibrary.Theprojectismanagedbyaworldwidecommunity
ofvolunteersthatusetheInternettocommunicate,plan,anddeveloptheOpenSSLtoolkitanditsrelateddocumentation.
OpenSSLisbasedontheexcellentSSLeaylibrarydevelopedbyEricA.YoungandTimJ.Hudson.TheOpenSSLtoolkit
islicensedunderanApache-stylelicence,whichbasicallymeansthatyouarefreetogetanduseitforcommercialand
non-commercialpurposessubjecttosomesimplelicenseconditions.IntheConsoleServerOpenSSLisusedprimarilyin
conjunctionwith‘http’inordertohavesecurebrowseraccesstotheGUImanagementconsoleacrossinsecurenetworks.
MoredocumentationonOpenSSLisavailablefrom:
http://www.openssl.org/docs/apps/openssl.html
http://www.openssl.org/docs/HOWTO/certicates.txt
15.8 HTTPS
The Management Console can be served using HTTPS by running the webserver via sslwrap. The server can be launched on
request using inetd.
The HTTP server provided is a slightly modified version of the fnord-httpd from http://www.fefe.de/fnord/
The SSL implementation is provided by the sslwrapapplicationcompiledwithOpenSSLsupport.Moredetaileddocumentation
can be found at http://www.rickk.com/sslwrap/
If your default network address is changed or the unit is to be accessed viaaknownDomainNameyoucanusethefollowing
steps to replace the default SSL Certificate and Private Key with ones tailored for your new address.
15.8.1 Generating an encryption key
Tocreatea1024bitRSAkeywithapasswordissuethefollowingcommandonthecommandlineofalinuxhostwiththe
openssl utility installed:
openssl genrsa -des3 -out ssl_key.pem 1024
15.8.2 Generating a self-signed certificate with OpenSSL
ThisexampleshowshowtouseOpenSSLtocreateaself-signedcerticate.OpenSSLisavailableformostLinuxdistributions
viathedefaultpackagemanagementmechanism.(Windowsuserscancheckhttp://www.openssl.org/related/binaries.html)
Tocreatea1024bitRSAkeyandaself-signedcerticateissuethefollowingopenssl command from the host you have
openssl installed on:
openssl req -x509 -nodes -days 1000 \
-newkey rsa:1024 -keyout ssl_key.pem -out ssl_cert.pem
Youwillbepromptedtoenteralotofinformation.Mostofitdoesn'tmatter,butthe"CommonName"shouldbethedomain
nameofyourcomputer.Whenyouhaveenteredeverything,thecerticatewillbecreatedinalecalledssl_cert.pem.