In order to set up SSL on your application server, you will need to clone and modify a RightScript on your front-end server template and upload your key and cert. Depending on your setup, you will have to find the appropriate script to modify.
Go to the server template that you're using for your front-end server and click on the Scripts tab. In this example, we will modify the WEB apache http-only vhost script in the LB Apache+HAproxy server template. Click on the magnifying glass to edit the script.

Since you need to edit it, click the Clone button and rename the script. Ex: WEB apache http-only vhost (revised).

Click on the Scripts tab and click Edit.
Towards the bottom of the script you will see the following line.
/opt/rightscale/lb/bin/apache_config_vhost.rb -t http $options
Assuming that you have not set the "OPT_VHOST_PORT," all you need to do is copy this line and modify the '-t' parameter to set up a https vhost and append -a $ATTACH_DIR. An example of a finalized script is shown below.
# Add a non-ssl vhost at port 80 to $WEB_SITE_DNS /opt/rightscale/lb/bin/apache_config_vhost.rb -t http $options
# Add an ssl vhost at port 443 to $WEB_SITE_DNS /opt/rightscale/lb/bin/apache_config_vhost.rb -t https $options -a $ATTACH_DIR
The next step is to upload your key and cert as an attachment to this script. Click the Attachments tab and browse for the files. Each attachment must have the correct .key and .crt extention in the filename.
If you have a chain of server certificates (SSLCertificateChainFile Directive), you can also upload the necessary file as an attachment. The filename must have a .sf_crt file extension.
The last step is to replace the original script with the revised one that we just created. Add the new RightScript as a boot script and move the new script in front of the old one. Finally, remove the old script. (Remember, you can only edit a server template that is cloned. If you cannot edit the server template, clone it now.)
