Configure SSL on Marketplace VM
The Flexify.IO Marketplace VM ships with a self-signed SSL certificate by default. If HTTPS is required, replace this certificate with one issued for your own domain before pointing clients at the VM.
The certificate must cover the endpoint hostname configured in Flexify.IO, so set that hostname and its DNS record first.
The certificate’s private key must be in PKCS#8 PEM format. It should start with BEGIN PRIVATE KEY. If the private keys starts with BEGIN RSA PRIVATE KEY, it is PKCS#1 and should be converted first.
Steps
SSH into the VM using the private key file saved when the VM was created (default username:
azureuser).Set the endpoint hostname in the Flexify Engine config: browse to the hidden config page at
<VM IP>/flexify-io/manage/admin/engines/configs/1, enter your S3 base hostname (for examples3.mydomain.com) in the Endpoint hostname field, and save. This is required for virtual-style bucket addressing.In your DNS, map that hostname and its wildcard, for example
s3.mydomain.comand*.s3.mydomain.com, to the VM's IP address.On the VM, locate the certificate files under
/etc/flexify/ssl/:cert.pem– the SSL certificate, PEM encoded.key.pem– the private key, PKCS#8 PEM encoded.
Replace both files with a certificate and private key issued for the endpoint hostname set above (use a wildcard certificate if you want subdomain-style bucket URLs). Keep the original ownership and permissions on the replacement files:
root:root, mode 600.Restart the Marketplace VM from the Azure portal to apply the hostname and certificate changes.
Converting a PKCS#1 key to PKCS#8
If your certificate authority issued a private key in PKCS#1 format (beginning with BEGIN RSA PRIVATE KEY), convert it to PKCS#8 before copying it to key.pem:
openssl pkcs8 -topk8 -nocrypt -in rsa-key.pem -out key.pem
Source
Those steps were first published for Discourse at https://meta.discourse.org/t/using-object-storage-for-uploads-s3-clones/148916#azure-blob-storage-with-flexifyio-10.