Skip to main content

Configuring HTTPS (SSL/TLS) for Flexify.IO S3 Endpoint

Flexify.IO Management Server runs as Azure App Service and enjoys SSL/TLS configuration natively provided by the App Service.

Flexify.IO Engines, however, need to be configured with SSL certificate in order to be able to terminate SSL for S3 connections.

DNS configuration​

To work over TLS/SSL, your S3 endpoint needs to have a DNS name. It’s recommended (but not required) to have s3 in the DNS name to indicate that it’s an S3 endpoint, such as s3.example.com

Add following DNS entries to your domain (replace example.com with your actual domain or sub-domain):

s3.example.com

A record to Azure Load Balancer IP address, or

CNAME record to Azure Load Balancer IP address DNS name.

*.s3.example.com (wildcard)

CNAME to s3.example.com, or a record pointing directly at Azure Load Balancer IP address.

The second (wildcard) DNS entry is required for virtual-style bucket addressing (such as mybucket.s3.example.com) to work. If it’s not possible to configure such, make sure your S3 clients are configured to use path-style bucket addressing (such as s3.example.com/mybucket).

SSL certificate​

You will need to generate or buy trusted SSL certificate for domain names you’ve created. Make sure it includes both s3.example.com and *.s3.example.com.

For example, to obtain Let’s Encrypt certificate, you can use following command:

certbot certonly \
--manual \
--preferred-challenges dns \
--key-type rsa \
-d s3.example.com \
-d *.s3.example.com

We recommend using RSA for backward compatibility with older S3 clients, but ECDSA is also supported.

Modify Fleixfy.IO Engines configuration​

  1. Open Flexify.IO web console.

  2. Switch to the All Engines page.

  3. Click Configurations in the top right corner.
    By default, there is one configuration. Click on it, or choose the configuration that Engines in your VMSS receive.

image-20240418-125003.png

  1. Expand Proxy / Forwarding card and specify the domain name you’ve configured before.

image-20240418-125138.png

  1. Click on the Accept HTTPS slider and copy-paste certificate and private key into the corresponding fields.

image-20240418-125609.png

Make sure to specify the entire certificate chain up to the trusted root certificate. Otherwise some operating systems (Linux) might be unable to validate the certificate.

  1. Save the configuration changes

  2. Restart or redeploy engines

  1. Verify the installed certificate

    openssl s_client -connect test-bucket.s3.example.com:443

Engines receive proxy configuration, including DNS name and SSL/TLS certificate when they first start and register at the Management Server. If you make changes to the configuration, make sure to restart or re-deploy engines for it to take effect.