Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: upgrading the up.time Monitoring Station will overwrite the changes to httpd.conf, so when the upgrade is complete, be sure to update the httpd.conf file again. 

Configuring SSL

To configure SSL browsing in the up.time web interface, you must generate a server certificate, which identifies that server is using SSL for security, and perform some platform-specific configuration. The following steps will cover this process.

Generate or obtain a server certificate

You can purchase a recognized certificate from a vendor such as Verisign or Thawte.

...

Code Block
cd <openssl_dir>/bin 
openssl genrsa -des3 -out uptime_ssl_server.key 1024 
openssl req -new -key uptime_ssl_server.key -out uptime_ssl_server.csr 
openssl x509 -req -days 365 -in uptime_ssl_server.csr -signkey    
	uptime_ssl_server.key -out uptime_ssl_server.crt

Create a passphrase file

Create a passphrase file containing your SSL server password specified in the previous step. The up.time Web Server will require the password each time it restarts but a passphrase file will automate the request, so user intervention is not necessary.

...

Code Block
languagebash
chmod +x passphrase.cmd


Move the files to the up.time directory

Copy the following files to the <uptime_dir>/apache/conf directory where <uptime_dir> is the installation directory of up.time (the default installation directory is C:\Program Files\uptime software\uptime on Windows and /usr/local/uptime on Linux).

        • uptime_ssl_server.key
        • uptime_ssl_server.crt
        • passphrase.cmd

 

Update httpd.conf

The following changes to the web server configuration file (httpd.conf) will allow it to use SSL.

...

Code Block
languagexml
SSLMutex default 
SSLPassPhraseDialog "exec:<uptime_dir>/apache/conf/passphrase.cmd" 
SSLSessionCache none 

<VirtualHost *:80> 
 RewriteEngine on 
 RewriteCond %{SERVER_PORT} !^443$ 
 RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [NC,R,L] 
</VirtualHost> 

<VirtualHost *:443> 
 SSLEngine on 
 DocumentRoot "<uptime_dir>/GUI" 
 SSLCertificateFile "<uptime_dir>/apache/conf/uptime_ssl_server.crt" 
 SSLCertificateKeyFile "<uptime_dir>/apache/conf/uptime_ssl_server.key"\t 
</VirtualHost> 

<VirtualHost *:9999> 
 RewriteEngine on 
 RewriteCond %{SERVER_PORT} !^443$ 
 RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [NC,R,L] 
</VirtualHost>

Update uptime.conf

Open the <uptime_dir>/uptime.conf file for editing and change the httpContext parameter (which begins with "httpContext=http://") to relfect the use of SSL:

Code Block
languagexml
httpContext=https://<Server_Hostname>:9999

Restart the services

For the changes to take effect, restart the up.time Data Collector and up.time Web Server on Windows or uptime_core and uptime_httpd on Linux. 

...