githubEdit

SSL certificates

Add SSL certificates to your virtual machines.

Overview

Instruqt can automatically generate SSL certificates for VMs using Let's Encryptarrow-up-right. Automatic SSL certificate generation simplifies the process of securing virtual machines within your Instruqt sandbox environments.

Add SSL certificates

You can add an SSL certificate to a VM using the web UI or the Instruqt CLI.

  1. Select a VM in your track's sandbox.

  2. Click Show optional settings.

  3. Select Provision SSL certificate.

  4. Click Save host.

circle-exclamation

Use SSL certificates

When enabled, Instruqt will provision a certificate for the following domain names:

  • ${hostname}.${_SANDBOX_ID}.instruqt.io

  • *.${hostname}.${_SANDBOX_ID}.instruqt.io

The certificate is made available via the GCP metadata servicearrow-up-right for that virtual machine instance. The public key is available under the ssl-certificate attribute, the private key under the ssl-certificate-key attribute. You can download them using a curl statement to the metadata service.

Here is an example of how to retrieve the SSL certificate using curl:

circle-info

The certificates can retrieved and configured using a track or challenge's setup scripts.

Last updated

Was this helpful?