...
Note |
---|
To avoid security exceptions in browsers, make sure the common names specified in SSL certificates correctly rightly correspond to the domain names of API management, gateway and WAMP web servers. |
Enabling SSL
To enable SSL Connections on the Drupal Developer Portal using Web Server, perform the following actions:
Generate a Self Signed Certificate using the command below which uses openssl to create a basic certificate:
Code Block openssl req -x509 -nodes -days 365 -newkeyrsa:2048 -keyoutdrupal.key -out drupal.crt
Configure the Apache server to enable SSL Connections y making the following changes at /path/to/your/<WebServer>/apache2/conf:
Create a file named "drupal-vhosts.conf" in the extra folder at /path/to/your/WAMPP/apache2/conf.
Include this file in the httpd.conf folder at /path/to/your/WAMPP/apache2/conf using using the following command:
Code Block Include conf/extra/drupal-vhosts.conf
Add the below commands to the drupal-vhosts.conf file:
Code Block title To enable SSL connections, "ssl_module" is required: LoadModule ssl_module modules/mod_ssl.so
Code Block title To load the SSL certificate file that is created: <VirtualHost *:443> SSLEngine on SSLCertificateFile "/path/to/your/Certificate/File/drupal.crt" SSLCertificateKeyFile "/path/to/your/Certificate/File//drupal.key" </VirtualHost>
Info 443 is the default SSL port for the Apache server.
Code Block title To Redirect the URL from http:// to https:// <VirtualHost *:80> Redirect /FioranoDeveloperPortal https://localhost/FioranoDeveloperPortal </VirtualHost>
Info 80 is the default HTTP port for the Apache server.
...