Configuring R Interpreter
- Configure Rserve
nano /scratch/software/R/Rserve.conf (sample file)>auth requiredplaintext disabledpwdfile /scratch/software/R/creds/Rserve.pwdremote enableswitch.qap.tls enabletls.port 6311qap disableinteractive norsa.key /scratch/software/R/creds/server.keytls.key /scratch/software/R/creds/server.keytls.cert /scratch/software/R/creds/server.crt - password file Rserve.pwd:
>oml $5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8The file contains one line per user, where the first part is the username, and the second part is the password.The password can either be plain text or a MD5/SHA1 hash. In this example the password `password` is hashed with SHA1.If you use hashed passwords, the password string needs to start with a `$` sign. - SSL Key:
openssl genrsa -out server.key 2048openssl req -new -key server.key -out server.csr # password 1234openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt - Creating Keystore:
keytool -import -alias <keystore-alias> -file <path-to-server.crt>/server.crt -keystore <output-path-to-keystore/rinterpreterkeystore -storepass <keystore-secret> -noprompteg. keytool -import -alias rserve -file /scratch/software/R/creds/server.crt -keystore /scratch/software/R/creds/rinterpreterkeystore -storepass changeit -nopromptNote:
Steps to enable TLS during R Interpreter InstallationSteps to enable TLS during R Interpreter Installation:- Download
Rserve_1.8-10.tar.gzfrom this link: https://cran.r-project.org/src/contrib/Archive/Rserve/ - Install openssl-devel - [yum install openssl-devel]
- Execute below cmd:
R CMD INSTALL --configure-args="--with-ssl-headers=/usr/include --with-ssl-libraries=/usr/lib64" Rserve_1.8-10.tar.gzThe below steps can be executed from R session to check that Rserve configuration is working before starting the services:
Start R from Terminal/Putty and execute the below commands:library(Rserve)Rserve(args="--RS-conf <Rserve.conf file location including file name> --no-save")
- Download