WebPagetest Forums
Enabling SSL on Private instance - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Enabling SSL on Private instance (/showthread.php?tid=14861)



Enabling SSL on Private instance - snvssaikumar - 04-15-2017 04:36 AM

Hi,

are there any instructions to setup SSL on the Private instance? Basically i want to add SSL(https) for my webpagetest server. Is is a simple config change with certificate installation? . Also does the current agents support ssl authentication with webpagetest server ?

Thanks
Saikumar


RE: Enabling SSL on Private instance - josephscott - 04-16-2017 02:40 PM

I'm using HTTPS on my private WebPageTest instance. There was a problem with older EC2 test agent images, but current ones should be ok.


RE: Enabling SSL on Private instance - snvssaikumar - 04-18-2017 05:03 AM

(04-16-2017 02:40 PM)josephscott Wrote:  I'm using HTTPS on my private WebPageTest instance. There was a problem with older EC2 test agent images, but current ones should be ok.

Hi,

do you have steps to follow for enabling https ? i am taking care of certificate creation and installation. i am look for list of changes in code/agents config

Thanks
Saikumar


RE: Enabling SSL on Private instance - mattwomple - 01-11-2018 06:17 AM

(04-18-2017 05:03 AM)snvssaikumar Wrote:  do you have steps to follow for enabling https ? i am taking care of certificate creation and installation. i am look for list of changes in code/agents config

I came across this thread when searching for an answer to the same question. It looks like /var/www/webpagetest/www/nginx.conf is port agnostic. I was able to follow the basic guidelines here to enable SSL simply by editing /etc/nginx/sites-available/default. See section A single HTTP/HTTPS server.

Here's an example:
Code:
server {
    server_name myservername.org;
    listen 80 default_server;
    listen 443 ssl default_server;
    listen [::]:80 default_server ipv6only=on;
    listen [::]:443 default_server ssl ipv6only=on;
    ssl_certificate /path/to/myservername.org.crt;
    ssl_certificate_key /path/to/myservername.org.key;



RE: Enabling SSL on Private instance - domdistilled - 02-09-2018 06:41 AM

Remember if you're following one of the many tutorials for this online, they will only talk about opening port 80 at AWS level.

If you're going HTTPS you'll need to open port 443. That one just caught me out.