Skip to content
Foxipa
Code Completion 5 Challenges

Complete the config: Nginx TLS & Security

Fill in modern protocols, mTLS verification, session caching, and stapling.

Intermediate ~4 min read

Challenge 1

Allow only the two modern TLS protocol versions.

nginx Your answer
server {
     TLSv1.2 TLSv1.3;
}

Press Ctrl⌘Enter to check your answer

Challenge 2

Require client certificates for mutual TLS.

nginx Your answer
server {
     on;
    ssl_client_certificate /etc/nginx/ca.pem;
}

Press Ctrl⌘Enter to check your answer

Challenge 3

Share TLS session state across all workers.

nginx Your answer
server {
     shared:SSL:10m;
}

Press Ctrl⌘Enter to check your answer

Challenge 4

Attach the certificate's revocation status to the handshake.

nginx Your answer
server {
     on;
    ssl_stapling_verify on;
}

Press Ctrl⌘Enter to check your answer

Challenge 5

Finish the admin-location access list: internal network in, everyone else out.

nginx Your answer
location /admin/ {
    allow 10.0.0.0/8;
    ;
}

Press Ctrl⌘Enter to check your answer