...
- This document applies to the Pentaho BI Server, versions 1.6 and higher.
- This document assumes the presence of the OpenSSL toolkit. Most Linux distributions come with OpenSSL. For Windows, there are a pre-compiled binaries.
The instructions below assume three entities:
Entity | Description |
---|---|
certificate authority (CA) | In this example, you will play the role of CA. In a real life scenario, a company like VeriSign would serve as the CA. |
server | This is a server such a Apache Tomcat. It will both present a certificate of its own and request a certificate from the client. |
browser client | This is a browser such as Mozilla Firefox. It will be configured to present a client certificate when prompted. |
Instructions
- Prepare the certificate authority (CA) certificate.
- Generate the CA private key.
- Generate the self-signed certificate for the CA using the CA private key.
- Prepare the server certificate.
- Generate the server private key.
- Generate the server certificate signing request (CSR).
- Sign the server CSR using the CA private key and CA certificate.
- Prepare the client certificate.
- Generate the client private key.
- Generate the client CSR.
- Sign the client CSR using the CA private key and CA certificate.
- Import the CA certificate into the keystore (e.g.
cacerts
) containing the root certificates of certificate authorities.- Export the CA private key and CA certificate into a format suitable for the JVM keystore.
- Import the CA private key and CA certificate into a temporary keystore.
- Export the CA certificate out of the temporary keystore.
- Import the CA certificate into the
cacerts
file.
- Import the server private key and server certificate into the keystore to be used by the server.
- Export the server private key and server certificate into a format suitable for the server keystore.
- Import the server private key and server certificate into the server keystore.
- Edit the server config to enable HTTPS and to use the server keystore.
- Import the client private key and client certificate into the browser.
- Export the client private key and client certificate into a format suitable for the browser.
- Import the client private key and client certificate into the browser.
Results
Examples
The example below assumes the presence of the OpenSSL toolkit. Most Linux distributions come with OpenSSL. For Windows, there are a pre-compiled binaries.
Panel | ||
---|---|---|
| ||
# Generate the CA private key. You will be prompted for a key password. # Generate the self-signed certificate for the CA using the CA private key. # Generate the server private key. You will be prompted for a key password. # Generate the server certificate signing request (CSR). # Sign the server CSR using the CA private key and CA certificate. # Generate the client private key. # Generate the client CSR. # Sign the client CSR using the CA private key and CA certificate. # Export the CA private key and CA certificate into a format suitable for the JVM keystore. # Import the CA private key and CA certificate into a temporary keystore. # Export the CA certificate out of the temporary keystore. # Import the CA certificate into the cacerts file. # Export the server private key and server certificate into a format suitable for the server keystore. # Import the server private key and server certificate into the server keystore. # Edit the server config to enable HTTPS and to use the server keystore. # Export the client private key and client certificate into a format suitable for the browser. # Import the client private key and client certificate into the browser. |