Difficulty: beginner
Estimated Time: 10-15 minutes

Secure Docker Daemon using HTTPS

Step 1 of 6

Step 1 - Generate Server SSL Certificate

First create a public key.

openssl genrsa -aes256 -out ca-key.pem 2048

Enter a password for the public key. This creates a file called ca-key.pem.

Generate server key.

openssl genrsa -out server-key.pem 4096

This generates server-key.pem.

Generate certificate. Set the subject to the hostname.

openssl req -subj "/CN=$HOST" -sha256 -new -key server-key.pem -out server.csr

This creates server.csr.

The server will use ca-key.pem and server-key.pem. These will also be used to create and sign keys allowing clients to access the Docker daemon.

Creating Katacoda Scenarios

Thanks for creating Katacoda scenarios. This tab is designed to help you as an author have quick access the information you need when creating scenarios.

This tab will not be visible to users.

Here are some useful links to get you started.

Running Katacoda Workshops

If you are planning to use Katacoda for workshops, please contact [email protected] to arrange capacity.

Debugging Scenarios

Below is the response from any background scripts run or files uploaded. This stream can aid debugging scenarios.

If you still need assistance, please contact [email protected]