Museum SSL Web Browser InterfaceDefault SSL ConfigurationTo run an SSL server, you need a private key and a certificate signed by a Certificate Authority. This information can be concatenated in one file, or can each be in a separate file. Museum ships with a private key file called "localhost.key" and a certificate file called "localhost.pem". These are located in the Museum server installation directory. You are welcome to use these for your SSL setup, however for better security and to eliminate security warnings in client browsers, you may want to use your own private key and certificate. Customised SSL ConfigurationMuseum uses OpenSSL to support SSL. For OpenSSL, and therefore Museum, these files will usually end in .pem or .asn. Keep in mind, some files may not have the correct filename ending, but may actually contain compatible content. The best idea is to give them a try. You will need to update the Museum configuration file (config.xml, located in the installation directory) to point to your files. config.xml can be edited in any text editor, such as notepad.exe.
Using OpenSSL to Generate Keys and CertificatesAs mentioned above, OpenSSL is used by Museum, so the easiest way to generate compatible keys and certificates, is to use command line OpenSSL. The official OpenSSL website http://www.openssl.org/ contains source code, but no binaries. You can compile your own OpenSSL binaries, or one of the following alternatives would probably be easier: Shining Light Productions self contained Windows installer for OpenSSL (Easiest) GnuWin32 native ports of GNU Unix tools Cygwin Linux emulation environment for Windows To Generate Private KeysThe following shows the steps to produce the files needed for Museum's default demonstration localhost SSL certificate. Example command prompt session as actually used to create the localhost.key example provided in the Museum installation directory:
Inclusion of the -des3 paramter, will prompt you for a passphrase used to encrypt the contents of the -out file. This passphrase will have to be entered into the Museum configuration file at the <https_private_key_passphrase> xml node. passphrase use above was mylocalhostpassphrase
To Get an SSL CertificateOption 1 : Generate a Certificate Signing Request (CSR) and Send it to a Certificate Authority (CA)The first step in obtaining a SLL certificate, is to generate a certificate signing request from your private keys. Example command prompt session as actually used to create the localhost.csr example provided in the Museum installation directory:
NOTE : You would use filenames specific to the domain you are working on e.g. mydomain.key and mydomain.csr The -out .csr file is then sent to a Certificate Authority which will sign it after verifying you. The Certificate Authority will sign your request and send you back a localhost.pem file to use as your SSL certificate. Option 2 : Be Your Own Certificate Authority (CA)If you don't need to use a third party Certificate Authority, you can make your own Certificate Authority and sign the certificate yourself. First generate the certificate authority private keys:
Then make a new Certificate Authority certificate (This is different from the command that generates the certificate sign request, only by the addition of the -x509 parameter)
Now, we configure the current directory to suit the default OpenSSL certificate authority configuration file:
Then call the OpenSSL ca command, overriding default parameters where needed
We now have our localhost SSL certificate localhost.pem signed by the certificate authority whose keys where ca.key and certificate that was ca.pem |
|||||||
Museum Email Archive 2.03 Broadgun Software - Copyright (C) 2005 All rights reserved |
|||||||