You are viewing the RapidMiner Server documentation for version 9.2 -Check here for latest version
Enabling HTTPS
To create secure connections between RapidMiner Studio and RapidMiner Server or for the Web UI, take the following steps:
ConfigureRapidMiner Serverfor HTTPS.
Reconfigure the connection between RapidMiner Server and theJob Agent
Reconfigure the connection between RapidMiner Server andRapidMiner Studio.
If you want to change the default port (8443) for HTTPS communication on the server side, see the section onchanging ports.
Configure RapidMiner Server for HTTPS
Follow these steps to enable an SSL-encrypted connection:
Obtain an SSL certificate from a certificate authority of your choice. In order to configure HTTPS communication, you need to have a private key, a server certificate and an optional certificate chain of the issuer. Certificate issuers provide these data in various formats, which can be converted easily to the other formats:
- If using the PEM format, the private key is provided in a separated file with
.key
extension, while the certificate and the certificate chain in one or more files with.cer
or.crt
extension. These files are text based with BASE64 encoding. - The DER format provides the same structure: a separated private key file and certificate file(s), which are binary files with DER encoding.
- PKCS # 12的格式是一个包子dle (keystore) in one file with
.p12
or.pfx
extension, that contains one or more set of "certificate related data" (private key, certificate and optional certificate chain) tagged with analias
. Thealias
identifies exactly the private key and certificate in the store file. - The JKS (Java Keystore) format is similar to the PKCS#12 format and used mainly in Java-based environments
Note: SSL certificates are issued per domain, per host name or for a set of subdomains (wildcard certificate). Make sure that the hostname of the certificate matches the hostname of your RapidMiner Server installation. Otherwise, accessing browsers will show warnings and may even block access entirely.
- If using the PEM format, the private key is provided in a separated file with
To install the certificate to RapidMiner server a JKS format is needed. Please consult the CA's documentation for instructions on converting it,check online available resourcesor check our examples here. OpenSSL is a freely available tool for managing and converting certificates, while keytool is included in Java installations for managing Java keystores (JKS).
Convert PEM certificate and private key to PKCS#12 format. Provide the certificate-related files, set an alias (e.g. "pkcs12alias") in the command line and the tool will ask for a password (Export password), that will be used to encrypt the PKCS#12 file.
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile chain.crt -name "pkcs12alias"
The generated certificate bundle can be checked using the following command:
openssl pkcs12 -info -in certificate.pfx
Convert PKCS#12 into JKS, using the Javakeytool, as follows. Please check the filename parameters in the command line and take care on the alias names also. The
srcalias
should be the same that was used previously during the export to the PKCS#12 format (name parameter). The tool will ask for a new password for the new JKS file (destination keystore password) and also the password of the previously created PKCS#12 file (source keystore).keytool -importkeystore -destkeystore certificate.keystore -srckeystore yourkeystore.p12 -srcstoretype PKCS12 -srcalias pkcs12alias -destalias jksalias -trustcacerts
Copy the generated
certificate.keystore
to the folderconfiguration/
in yourRapidMiner Server home directory.Open the file
standalone.xml
. It is located inconfiguration/
of theRapidMiner Server home directory.Locate the tag
. Uncomment the following snippet directly below the tag (by deleting) and edit the password to match the password of your keystore and edit the alias field to match the alias name used during the JKS export. (If you cannot find the commented snippet, just copy the code below and paste it directly after the
tag.). Please take care on the path of the keystore. If it is not located in the folder/rapidminer-server-home/configuration
, then you can provide the full path also.If ciphers need to be hardened, add the following attributes
cipher-suite="TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384,TLS_RSA_WITH_AES_256_CBC_SHA256" protocol="TLSv1.1,TLSv1.2"
to the element starting with
If you want to disable HTTP connections entirely and forward them to HTTPS automatically:
Add the flag
redirect-port="8443"
inside the HTTP (not HTTPS) tag —
. (Replace the port with your actual SSL port if it differs from the default):Modify the
web.xml
file, which can be found at/standalone/deployments/rapidminer-server-xxx.ear/rapidminer-server-war.war/WEB-INF/web.xml
of your RapidMiner Server installation directory, by adding the following:Secure Apps /* CONFIDENTIAL
Restart RapidMiner Server.
Reconfigure the connection in the Job Agent(s)
配置RapidMiner服务器之后,you must also reconfigure each Job Agent that connects to this server. Follow these steps:
Locate the Job Agent's configuration file
agent.properties
(located in thehome/config
directory of the Job Agent deployment)Modify the
rapidminer.server.protocol
property tohttps
Modify the
rapidminer.server.host
andrapidminer.server.port
properties to contain the valid hostname and port configured for your server.
Reconfigure the connection in RapidMiner Studio
配置RapidMiner服务器之后,you must also reconfigure each RapidMiner Studio instance that connects to this server. Follow these steps:
In RapidMiner Studio, right-click on the RapidMiner Server repository and selectConfigure Repository:
TheConfigure RapidMiner Server Repositorywindow opens. Modify theRepository URLfield to use SSL and match the port value you set for RapidMiner Server.
For example:
ClickSaveto save your changes.