How to configure SSL for Dev Portal on-premise

oyamatakuro
Participant IV

Hello,

I would like to configure SSL for Dev portal on-premise so that developers access that via HTTPS.

There is the information on using TLS on Dev Portal as below,

http://docs.apigee.com/developer-services/content/using-ssl-portal

but the information on "Configure TLS on the portal itself" on the page is for Apache.

My dev portal (v4.17.01.01) is built on nginx, so I think the way to configure ssl is different.

It will be appreciated if anyone can help to configure the ssl setting.

Thanks

Solved Solved
1 4 521
1 ACCEPTED SOLUTION

Not applicable

Hi @Takuro Oyama,

The conf files for portal are here
/opt/apigee/data/apigee-lb/conf.d/apigee-drupal-devportal-nginx.conf

you should be able to create one more conf file (example: apigee-drupal-devportal-nginxssl.conf owned by apigee )
copy the content of the original file and add the below ssl properties

listen 9443;
ssl on;
ssl_certificate www.example.com.chained.crt;
ssl_certificate_key www.example.com.key;

reload nginx and restart apigee-drupal-devportal

I tried on my local with self-signed and it worked. Let me know if it works for you.

View solution in original post

4 REPLIES 4

Not applicable

Hi @Takuro Oyama,

The conf files for portal are here
/opt/apigee/data/apigee-lb/conf.d/apigee-drupal-devportal-nginx.conf

you should be able to create one more conf file (example: apigee-drupal-devportal-nginxssl.conf owned by apigee )
copy the content of the original file and add the below ssl properties

listen 9443;
ssl on;
ssl_certificate www.example.com.chained.crt;
ssl_certificate_key www.example.com.key;

reload nginx and restart apigee-drupal-devportal

I tried on my local with self-signed and it worked. Let me know if it works for you.

Hello @Maruti Chand

Thanks for your help! It works with the configuration you answered.

Actually, private key I use is set with pass phrase.

That is why, I also configured password_file, in which the pass phrase info is described, in apigee-drupal-devportal-nginxssl.conf as below.

ssl_password_file password_file_path

That's correct, this https://nginx.org/en/docs/http/ngx_http_ssl_module.html has complete list of directives(properties) that can be used. Thanks for adding that point.

you can find the configuration of the portal to use HTTPS here For the portal running on Apache & Nginx