How to set up HTTPS For RPA?

Instruction to setup HTTPS on Automai RPA

The HTTPS is supported as of RPA or RFT (AppVerify) version and up, and ScenarioBuilder version and up 

1. Get your private.key and certificate.crt files either through OpenSSL or some other trusted website.

To create the two files using the included OpenSSL file:

  • Open command line  
  • cd "PATH_TO_AUTOMAI/Manager/webserv/bin"  
  • run these commands one after another:
    • openssl genrsa -aes256 -out private.key 2048
    • openssl rsa -in private.key -out private.key
    • openssl req -new -x509 -nodes -sha1 -key private.key -out certificate.crt -days 36500 -config "PATH_TO_AUTOMAI/Manager/webserv/conf/openssl.cnf"

2. Copy the private.key and certificate.crt files from "PATH_TO_AUTOMAI/Manager/webserv/bin" folder into "PATH_TO_AUTOMAI/Manager/webserv/conf/ssl" folder (create ssl folder if missing)

3. Download and Copy the attached file httpd-ssl.conf file into "PATH_TO_AUTOMAI/Manager/webserv/conf/extra" folder (create the "extra" folder if missing)

4. Edit the file httpd-ssl.conf and make sure that the file has the correct values in it:

5. Edit "PATH_TO_AUTOMAI/Manager/webserv/conf/httpd.conf" file

  • Add # before Listen 8888 to comment out the line (you might have set a different port).
  • Find the following line #LoadModule ssl_module modules/

Make sure to uncomment it by removing # sign: LoadModule ssl_module modules/

Add this line before it: Include conf/extra/httpd-ssl.conf

6. Restart all RPA services from Windows Task Manager

7. In order for Robots to communicate securely, do the following:

  • Go to "PATH_TO_AUTOMAI/rWorker/rWorker.ini"
  • Edit the .ini file and add the secure=yes option or uncomment if it already exists.
  • Optional: change all http ports (8888 by default) to https 443

8. In ScenarioBuilder you should change the following options from Options > Base:

a.  Make sure to add "https://" before the Manager (Controller) address

b.  Make sure that the port number is 443 for the controller