SSL certificates
Add SSL certificates to your virtual machines.
Last updated
Was this helpful?
Add SSL certificates to your virtual machines.
Last updated
Was this helpful?
Instruqt can automatically generate SSL certificates for VMs using . Automatic SSL certificate generation simplifies the process of securing virtual machines within your Instruqt sandbox environments.
You can add an SSL certificate to a VM using the web UI or the Instruqt CLI.
Select a VM in your track's sandbox.
Click Show optional settings.
Select Provision SSL certificate.
Click Save host.
Enable external ingress to port 443
(HTTPS) or high-ports
on the VM to make use of the new 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 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
:
The certificates can retrieved and configured using a track or challenge's .