FishEye SSL configuration
This page describes how to use SSL with FishEye.
On this page:
1. Obtain an SSL certificate
An SSL certificate is required in order for SSL to work in FishEye. There are two ways to obtain one:
Self-signed certificates are useful in cases where you require encryption, but do not need to verify the website's identity. They are commonly used for testing and on internal corporate networks (intranets). If a certificate is not signed by a Certification Authority (CA), users may get prompted that the site is untrusted. They may then have to perform several steps to "accept" the certificate before they can access the site. This usually only occurs the first time the site is accessed.
To obtain a self-signed certificate:
- Run the following command to create a new keystore file in the FishEye install directory (if one does not already exist):
When the keytool utility prompts you with 'What is your first and last name?', enter the fully qualified hostname of the server running FishEye/Crucible. Do not enter your first name and last name.
When the keytool utility prompts you to enter the keystore password and key password, enter your desired passwords. You must also specify these passwords in the FishEye/Crucible web admin (recommended) or specify these passwords directly in your
config.xmlin the corresponding attributes (see Configure FishEye/Crucible SSL below).
- You now have the minimal requirements to run SSL in FishEye. Next, configure FishEye/Crucible to use SSL as described in the Configure FishEye/Crucible SSL section below.
Certificate authority certificate
Digital Certificates issued by trusted 3rd party Certification Authorities (CAs) provide verification of the identity of your website. Many CAs simply verify the domain name and issue the certificate. Other CAs such as VeriSign also verify the existence of your business, the ownership of your domain name and the authority to whom the certificate application was made, thereby providing a higher standard of identification and authenticity.
A list of CA's can be found here. Some of the most well-known CAs are:
To obtain a certificate signed by a CA:
- Follow the instructions from the certificate authority you want your certificate signed by. Most CAs have their own instructions for you to follow, e.g. GoDaddy and VeriSign.
- If your CA requires a certificate signing request (CSR), use the following command:
- Ensure that the keystore being used to generate the signing request contains an existing key/cert keypair. If you don't already have a key/cert keypair, follow the steps in Self Signed Certificates to generate a keypair.
If the certificate you receive from the CA is not in a format that keytool understands then the
opensslcommand can be used to convert formats since
keytooldoes not perform any of these conversions. For example, to convert between DER and PEM formats:
If you have a key and a certificate in separate files you will need to combine them into a PKCS12 format file for loading into a new keystore. See these instructions for information on how to do so.
Load the certificate into the keystore, as follows:
- CA certificate in PEM format:
- CA certificate in PKCS12 format:
- CA certificate in PEM format:
- You will now have a keystore file with your certificate in it. Next, configure FishEye/Crucible to use SSL as described in the Configure FishEye/Crucible SSL section below.
2. Configure FishEye SSL
FishEye requires additional configuration in order to use SSL. This configuration can be done from the web admin as described below (recommended), or added directly into your
config.xml. Setting the bind address and the keystore and password field, as described below, will enable SSL in FishEye. You will need to restart your server after updating the settings, for the changes to take effect.
To configure FishEye to use SSL:
- Navigate to the FishEye admin area and click Server, under 'Global Settings' (see 'Server Settings' screenshot below).
- Click Edit settings in the 'Web Server' section.
Update the following fields (see 'Example SSL Settings' screenshot below):
SSL Bind Address
The SSL port. Most browsers default to 443 as the SSL port for the https protocol.
Path to the keystore file (as generated in the steps above). This path can be a relative path - e.g., putting in
keystore.kstwill mean that the file is in
<FishEye install directory>/keystore.kst(or
FISHEYE_INST/keystore.kst if it has been set up)
SSL Keystore Password
The password you used in the above step when creating the keystore file. If you did not set a password, leave this empty. See the passwords section
Path to the truststore file. May be the same as the keystore. Truststore is a list of trusted CAs. Format is the same as the keystore entry.
SSL Truststore Password
The password you used in the above step when creating the truststore file. If you did not set a password, leave this empty. See the passwords section
- Restart FishEye.
Screenshots: FishEye server settings (click to view larger images)
3. Remove HTTP Access
If you want your FishEye instance to be accessible via HTTPS only, you must remove the
<http bind=":8060"/> tag from
Was this helpful?
Thanks for your feedback!