Learning controls
Skip to learning
CloudSeam Tech / SONIC-Academy
Linux AdministrationApex · planned0 of 53 labs completeSave your progress →
SSL/TLS CERTIFICATE MANAGEMENT ON RHEL 9 WITH NGINX / LESSON 1 OF 13

SSL/TLS Certificate Management on RHEL 9 with NGINX

Before You Start: Build Two Small Practice Servers

Prepare a private RHEL 9 application server and a separate practice CA; learn how to open the right terminal.

RHEL 9 · NGINX · OpenSSL 3 · two isolated VMware VMs · app.example.mil is a fictional private lab name · 0/13 lessons self-verified
Step 1 of 12 · Focused view

Visual checklist

0/12 steps checked
STEP 1 OF 12

Write down the two jobs

Work in: Your Windows host · Notepad lab notes

Names are labels on computers, not extra computers.

Select the picture to enlarge it

Illustration · not a live capture · RHEL/Windows instructional mockup · not a live capture

Documentation used for this illustration
Write down the two jobs

Clearly labeled instructional mockup of the named environment and exact lab values, based on the written step and linked documentation. Not a genuine product screenshot, proof of a successful command, DoD endorsement or a real private key. Sample dates, hashes and prompts must be compared with your own result.

Instructional mockup for this exact step; not a genuine capture or proof of your result.

Steps

Do this

0 of 9 checked

Check your result

Your notes list two different jobs, two private addresses and one application address.

Read each row aloud: the application server hosts the page; the CA signs requests.

Need help?
Help opening this workspace

Start here: Use your lab notes on your own computer. This is a planning step; nothing is installed or changed yet.

Why am I doing this?

Names are labels on computers, not extra computers.

My result is different

If 10.90.0.0/24 already exists on your host or VPN, stop and choose a non-overlapping plan before copying any address.

What the commands and settings mean
Your job in this step
Make a tiny lab map.
Links & purpose for this step

Work in
Your Windows host · Notepad lab notes

Why this task
Names are labels on computers, not extra computers.

STEP 2 OF 12

Get the installers without buying cloud resources

Work in: Your Windows 10 host · Windows PowerShell

RHEL needs a valid entitlement for packages; a private VM does not require Azure.

Terminal — PowerShellINSTRUCTIONAL EXAMPLE

Start in C:\Users\YourName (an absolute Windows folder path).

PS C:\Users\YourName> Get-FileHash -Algorithm SHA256 "$env:USERPROFILE\Downloads\rhel-9.x-x86_64-dvd.iso"
WHAT TO LOOK FOR (EXAMPLE)
A SHA256 row appears. Its hash must exactly match Red Hat’s checksum for your exact ISO; the version in your filename may differ.
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.
YOUR COMMAND · TYPE IT WHEN YOU’RE READY
Type it with meInput 1 of 1
Example sessionPS C:\Users\YourName>

Start in the folder named by this step: C:\Users\YourName. Use Get-Location to check your current folder; use Set-Location to change it when instructed. User and host names shown are examples.

Get-FileHash -Algorithm SHA256 "$env:USERPROFILE\Downloads\rhel-9.x-x86_64-dvd.iso"
Type this input yourself, then press Enter and read the result. Leave out the example prompt. Keep $, # and > wherever they are part of the input itself.

What this means: Hash the downloaded public file. -Algorithm SHA256 selects the checksum algorithm; the quoted next path names the exact file.

Read the prompt

$ = regular Linux user. # = root shell. > = continued Bash input. PS path> = PowerShell. Running sudo does not turn every later prompt into #.

Steps

Do this

0 of 8 checked

Check your result

A SHA256 row appears. Its hash must exactly match Red Hat’s checksum for your exact ISO; the version in your filename may differ.

Compare all hash characters, not just the first few. Record the ISO version.

Need help?
Help opening this workspace

Start here: On the Windows computer named above, click Start and type Windows PowerShell. Open Windows PowerShell in a normal window. Look for a PS prompt. Type the input in the order shown, pressing Enter after each line. Finish the complete block before moving on.

Why am I doing this?

RHEL needs a valid entitlement for packages; a private VM does not require Azure.

My result is different

File not found means the example filename was not replaced. A mismatched checksum means stop and download again from Red Hat.

What the commands and settings mean
Your job in this step
Obtain supported RHEL 9 and VMware installers.
Get-FileHash
Hash the downloaded public file. -Algorithm SHA256 selects the checksum algorithm; the quoted next path names the exact file.
Links & purpose for this step

Work in
Your Windows 10 host · Windows PowerShell

Why this task
RHEL needs a valid entitlement for packages; a private VM does not require Azure.

STEP 3 OF 12

Create the application VM

Work in: Your Windows 10 host · VMware Workstation Pro 17

A VM keeps practice changes away from your own Windows installation.

Select the picture to enlarge it

Illustration · not a live capture · RHEL/Windows instructional mockup · not a live capture

Documentation used for this illustration
Create the application VM

Clearly labeled instructional mockup of the named environment and exact lab values, based on the written step and linked documentation. Not a genuine product screenshot, proof of a successful command, DoD endorsement or a real private key. Sample dates, hashes and prompts must be compared with your own result.

Instructional mockup for this exact step; not a genuine capture or proof of your result.

Steps

Do this

0 of 10 checked

Check your result

Library contains a new TLS-APP01 VM with 2 GB RAM, one vCPU, a growable disk and the RHEL ISO.

Reopen Edit virtual machine settings and compare the name, disk, memory and ISO before powering on.

Need help?
Help opening this workspace

Start here: On your real Windows PC, click Start, type VMware Workstation Pro and open it. Use the host menus for VMware settings. When the action asks for a guest console, double-click that VM in Library and work inside its screen. For Virtual Network Editor, open Edit → Virtual Network Editor → Change Settings.

Why am I doing this?

A VM keeps practice changes away from your own Windows installation.

My result is different

If hardware virtualization is unavailable, enable it in your host firmware using your computer vendor’s instructions before continuing.

What the commands and settings mean
Your job in this step
Make an empty computer for NGINX.
Links & purpose for this step

Work in
Your Windows 10 host · VMware Workstation Pro 17

Why this task
A VM keeps practice changes away from your own Windows installation.

STEP 4 OF 12

Install RHEL 9 and create learner

Work in: TLS-APP01 · RHEL 9 installer console

This is the operating system; NGINX is installed afterwards.

Select the picture to enlarge it

Illustration · not a live capture · RHEL/Windows instructional mockup · not a live capture

Documentation used for this illustration
Install RHEL 9 and create learner

Clearly labeled instructional mockup of the named environment and exact lab values, based on the written step and linked documentation. Not a genuine product screenshot, proof of a successful command, DoD endorsement or a real private key. Sample dates, hashes and prompts must be compared with your own result.

Instructional mockup for this exact step; not a genuine capture or proof of your result.

Steps

Do this

0 of 14 checked

Check your result

A text prompt such as [learner@tls-app01 ~]$ appears. A minimal server does not have a GNOME desktop.

Confirm you can sign in as learner, not root.

Need help?
Help opening this workspace

Start here: In VMware Library, open the TLS practice VM named above. Use its local installer or text console, as the step specifies; do not use the SSH window while changing its network settings.

Why am I doing this?

This is the operating system; NGINX is installed afterwards.

My result is different

If you cannot sign in, use the VMware console to check the username and keyboard layout; do not attempt SSH until console sign-in works.

What the commands and settings mean
Your job in this step
Install a minimal Linux server.
Links & purpose for this step

Work in
TLS-APP01 · RHEL 9 installer console

Why this task
This is the operating system; NGINX is installed afterwards.

STEP 5 OF 12

Install the application tools before isolation

Work in: TLS-APP01 · RHEL 9 local console · Bash

The temporary NAT adapter gives package access; later we remove it from both VMs.

Terminal — BashINSTRUCTIONAL EXAMPLE

Start in <pwd> (run pwd first to see your actual current directory).

[your-user@your-vm <pwd>]$ sudo subscription-manager identity
[your-user@your-vm <pwd>]$ # Run this only if the VM is not already registered:
[your-user@your-vm <pwd>]$ sudo subscription-manager register
[your-user@your-vm <pwd>]$ sudo dnf install -y nginx openssl openssh-server firewalld policycoreutils policycoreutils-python-utils
[your-user@your-vm <pwd>]$ sudo systemctl enable --now sshd firewalld
[your-user@your-vm <pwd>]$ openssl version
[your-user@your-vm <pwd>]$ nginx -v
WHAT TO LOOK FOR (EXAMPLE)
The tools install; OpenSSL reports 3.x and nginx reports a package version. Registration may use Simple Content Access; do not assume an auto-attach command is required.
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.

Type it with me

Command 1 of 7

Let’s take this one input at a time. Click inside the terminal in your own VM first.

sudo subscription-manager identity

Type this command into your VM’s terminal, then press Enter. Don’t type the example prompt shown in the terminal picture; keep symbols such as $HOME and > when they appear inside the command.

What you’re doingRegister or inspect the VM’s Red Hat entitlement. identity reads its existing identity; register asks for your own Red Hat account privately.

Before you continueRead the actual result before continuing. If it reports an error, pause and use Need help; the success check describes the result for the complete step.

Steps

Do this

0 of 7 checked

Check your result

The tools install; OpenSSL reports 3.x and nginx reports a package version. Registration may use Simple Content Access; do not assume an auto-attach command is required.

Run the final two version commands; each must display a version without command-not-found.

Need help?
Help opening this workspace

Start here: In VMware Library, open the TLS practice VM named above. Use its local installer or text console, as the step specifies; do not use the SSH window while changing its network settings.

Why am I doing this?

The temporary NAT adapter gives package access; later we remove it from both VMs.

My result is different

A repository or entitlement error must be fixed using your Red Hat subscription settings. Do not fetch random replacement RPMs or turn off signature checks.

What the commands and settings mean
sudo
Run the following command with administrator rights. Type your learner password if asked; no characters appear while you type.
systemctl
Ask systemd, the Linux service manager, about a service.
openssl
Use the cryptography toolkit installed with RHEL. Do not paste private keys into this website.
dnf install -y
Install packages from the configured RHEL repositories. -y confirms this listed package transaction; review it before starting.
subscription-manager
Register or inspect the VM’s Red Hat entitlement. identity reads its existing identity; register asks for your own Red Hat account privately.
systemctl enable --now
Enable a service/timer for future boots and start it now. This is not certificate renewal.
Links & purpose for this step

Work in
TLS-APP01 · RHEL 9 local console · Bash

Why this task
The temporary NAT adapter gives package access; later we remove it from both VMs.

STEP 6 OF 12

Build the separate practice CA VM

Work in: Your Windows 10 host · VMware Workstation Pro 17

The website private key and the CA signing keys have different homes.

Select the picture to enlarge it

Illustration · not a live capture · RHEL/Windows instructional mockup · not a live capture

Documentation used for this illustration
Build the separate practice CA VM

Clearly labeled instructional mockup of the named environment and exact lab values, based on the written step and linked documentation. Not a genuine product screenshot, proof of a successful command, DoD endorsement or a real private key. Sample dates, hashes and prompts must be compared with your own result.

Instructional mockup for this exact step; not a genuine capture or proof of your result.

Steps

Do this

0 of 7 checked

Check your result

VMware Library contains a new TLS-CA01 with its own RHEL 9 installation, learner account, one vCPU, 2 GB RAM and growable 30 GB disk.

Check the second VM name and its own virtual disk before continuing.

Need help?
Help opening this workspace

Start here: On your real Windows PC, click Start, type VMware Workstation Pro and open it. Use the host menus for VMware settings. When the action asks for a guest console, double-click that VM in Library and work inside its screen. For Virtual Network Editor, open Edit → Virtual Network Editor → Change Settings.

Why am I doing this?

The website private key and the CA signing keys have different homes.

My result is different

If you accidentally opened the application VM, switch to TLS-CA01. Do not reinstall or replace the first VM.

What the commands and settings mean
TLS-CA01
A separate new practice VM, not a clone of the application’s private-key files.
Links & purpose for this step

Work in
Your Windows 10 host · VMware Workstation Pro 17

Why this task
The website private key and the CA signing keys have different homes.

STEP 7 OF 12

Install the CA tools at its own console

Work in: TLS-CA01 · RHEL 9 local console · Bash

Signing tools belong on the private signing office, not the application server.

Terminal — BashINSTRUCTIONAL EXAMPLE

Start in <pwd> (run pwd first to see your actual current directory).

[your-user@your-vm <pwd>]$ hostname
[your-user@your-vm <pwd>]$ sudo subscription-manager register
[your-user@your-vm <pwd>]$ sudo dnf install -y openssl openssh-server firewalld policycoreutils
[your-user@your-vm <pwd>]$ sudo systemctl enable --now sshd firewalld
[your-user@your-vm <pwd>]$ openssl version
WHAT TO LOOK FOR (EXAMPLE)
The CA console shows tls-ca01 and OpenSSL 3.x.
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.

Type it with me

Command 1 of 5

Let’s take this one input at a time. Click inside the terminal in your own VM first.

hostname

Type this command into your VM’s terminal, then press Enter. Don’t type the example prompt shown in the terminal picture; keep symbols such as $HOME and > when they appear inside the command.

What you’re doingNext, ask the VM for its computer name. This helps you check that you’re working on the right machine before you make changes.

Before you continueYou should see your VM’s hostname. Write it down; your name may differ from alma-lab01.

Steps

Do this

0 of 6 checked
  1. Why?

    This is the second VM, not the application VM.

Check your result

The CA console shows tls-ca01 and OpenSSL 3.x.

hostname says tls-ca01.lab.example.test and openssl version reports 3.x.

Need help?
Help opening this workspace

Start here: In VMware Library, open the TLS practice VM named above. Use its local installer or text console, as the step specifies; do not use the SSH window while changing its network settings.

Why am I doing this?

Signing tools belong on the private signing office, not the application server.

My result is different

If the hostname is wrong, stop and open TLS-CA01 in VMware Library. For entitlement errors, fix this VM’s Red Hat registration.

What the commands and settings mean
sudo
Run the following command with administrator rights. Type your learner password if asked; no characters appear while you type.
systemctl
Ask systemd, the Linux service manager, about a service.
openssl
Use the cryptography toolkit installed with RHEL. Do not paste private keys into this website.
dnf install -y
Install packages from the configured RHEL repositories. -y confirms this listed package transaction; review it before starting.
subscription-manager
Register or inspect the VM’s Red Hat entitlement. identity reads its existing identity; register asks for your own Red Hat account privately.
hostname
Show the current computer name. This is your check that you are on the right VM.
systemctl enable --now
Enable a service/timer for future boots and start it now. This is not certificate renewal.
Links & purpose for this step

Work in
TLS-CA01 · RHEL 9 local console · Bash

Why this task
Signing tools belong on the private signing office, not the application server.

STEP 8 OF 12

Create the private practice network

Work in: Your Windows 10 host · VMware Workstation Pro 17

The .mil example must stay inside this learning exercise.

Select the picture to enlarge it

Illustration · not a live capture · RHEL/Windows instructional mockup · not a live capture

Documentation used for this illustration
Create the private practice network

Clearly labeled instructional mockup of the named environment and exact lab values, based on the written step and linked documentation. Not a genuine product screenshot, proof of a successful command, DoD endorsement or a real private key. Sample dates, hashes and prompts must be compared with your own result.

Instructional mockup for this exact step; not a genuine capture or proof of your result.

YOUR COMMAND · TYPE IT WHEN YOU’RE READY
sudo shutdown -h now

Steps

Do this

0 of 13 checked

Check your result

Both powered-off VMs use only VMnet6; Windows has a VMnet6 address of 10.90.0.254.

In each VM’s Hardware list, count the adapters and confirm Custom VMnet6.

Need help?
Help opening this workspace

Start here: On your real Windows PC, click Start, type VMware Workstation Pro and open it. Use the host menus for VMware settings. When the action asks for a guest console, double-click that VM in Library and work inside its screen. For Virtual Network Editor, open Edit → Virtual Network Editor → Change Settings.

Why am I doing this?

The .mil example must stay inside this learning exercise.

My result is different

If VMnet6 is in use, do not overwrite it. Return to the plan and use an unused host-only network consistently.

What the commands and settings mean
sudo
Run the following command with administrator rights. Type your learner password if asked; no characters appear while you type.
shutdown -h now
Power off the named practice VM now. -h requests halt/power-off; this is not a command for the Windows host.
Links & purpose for this step

Work in
Your Windows 10 host · VMware Workstation Pro 17

Why this task
The .mil example must stay inside this learning exercise.

STEP 9 OF 12

Give the application server its private address

Work in: TLS-APP01 · RHEL 9 local console · Bash

An SSH session would disconnect as its network address changes.

Terminal — BashINSTRUCTIONAL EXAMPLE

Start in <pwd> (run pwd first to see your actual current directory).

[your-user@your-vm <pwd>]$ nmcli -t -f NAME connection show --active
[your-user@your-vm <pwd>]$ LAB_CONNECTION='Wired connection 1'
[your-user@your-vm <pwd>]$ sudo nmcli connection modify "$LAB_CONNECTION" ipv4.method manual ipv4.addresses 10.90.0.10/24 ipv4.gateway '' ipv4.dns '' ipv4.never-default yes
[your-user@your-vm <pwd>]$ sudo nmcli connection up "$LAB_CONNECTION"
[your-user@your-vm <pwd>]$ sudo hostnamectl set-hostname tls-app01.lab.example.test
[your-user@your-vm <pwd>]$ ip -br address
WHAT TO LOOK FOR (EXAMPLE)
The active Ethernet interface shows 10.90.0.10/24.
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.

Type it with me

Command 1 of 6

Let’s take this one input at a time. Click inside the terminal in your own VM first.

nmcli -t -f NAME connection show --active

Type this command into your VM’s terminal, then press Enter. Don’t type the example prompt shown in the terminal picture; keep symbols such as $HOME and > when they appear inside the command.

What you’re doingList only active NetworkManager profile names (-f NAME) in compact form (-t). Use the exact name printed, not an assumed adapter name.

Before you continueRead the actual result before continuing. If it reports an error, pause and use Need help; the success check describes the result for the complete step.

Steps

Do this

0 of 5 checked

Check your result

The active Ethernet interface shows 10.90.0.10/24.

Compare the address with your notes. This VM must not use the CA’s .20 address.

Need help?
Help opening this workspace

Start here: In VMware Library, open the TLS practice VM named above. Use its local installer or text console, as the step specifies; do not use the SSH window while changing its network settings.

Why am I doing this?

An SSH session would disconnect as its network address changes.

My result is different

Unknown connection means LAB_CONNECTION does not match the first command’s result. Fix that value at the local console.

What the commands and settings mean
sudo
Run the following command with administrator rights. Type your learner password if asked; no characters appear while you type.
nmcli
Change NetworkManager’s saved connection settings.
ipv4.method manual
Use your recorded address rather than request one from DHCP.
hostname
Show the current computer name. This is your check that you are on the right VM.
hostnamectl set-hostname
Set this new lab VM’s computer name; it does not register a public website or create an AD domain.
nmcli -t -f NAME connection show --active
List only active NetworkManager profile names (-f NAME) in compact form (-t). Use the exact name printed, not an assumed adapter name.
nmcli connection modify
Change the named saved profile. ipv4.addresses sets address/mask; method manual disables DHCP; empty gateway/DNS clear those values; never-default yes avoids a default route.
nmcli connection up
Apply the named saved network profile. Do this at the local console because an SSH connection may drop.
ip -br address
Show interface addresses in brief (-br) form.
Links & purpose for this step

Work in
TLS-APP01 · RHEL 9 local console · Bash

Why this task
An SSH session would disconnect as its network address changes.

STEP 10 OF 12

Give the CA its different address

Work in: TLS-CA01 · RHEL 9 local console · Bash

Two computers cannot share one private address.

Terminal — BashINSTRUCTIONAL EXAMPLE

Start in <pwd> (run pwd first to see your actual current directory).

[your-user@your-vm <pwd>]$ nmcli -t -f NAME connection show --active
[your-user@your-vm <pwd>]$ LAB_CONNECTION='Wired connection 1'
[your-user@your-vm <pwd>]$ sudo nmcli connection modify "$LAB_CONNECTION" ipv4.method manual ipv4.addresses 10.90.0.20/24 ipv4.gateway '' ipv4.dns '' ipv4.never-default yes
[your-user@your-vm <pwd>]$ sudo nmcli connection up "$LAB_CONNECTION"
[your-user@your-vm <pwd>]$ sudo hostnamectl set-hostname tls-ca01.lab.example.test
[your-user@your-vm <pwd>]$ ip -br address
WHAT TO LOOK FOR (EXAMPLE)
The CA Ethernet interface shows 10.90.0.20/24.
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.

Type it with me

Command 1 of 6

Let’s take this one input at a time. Click inside the terminal in your own VM first.

nmcli -t -f NAME connection show --active

Type this command into your VM’s terminal, then press Enter. Don’t type the example prompt shown in the terminal picture; keep symbols such as $HOME and > when they appear inside the command.

What you’re doingList only active NetworkManager profile names (-f NAME) in compact form (-t). Use the exact name printed, not an assumed adapter name.

Before you continueRead the actual result before continuing. If it reports an error, pause and use Need help; the success check describes the result for the complete step.

Steps

Do this

0 of 3 checked

Check your result

The CA Ethernet interface shows 10.90.0.20/24.

Compare both VM consoles: application is .10, CA is .20.

Need help?
Help opening this workspace

Start here: In VMware Library, open the TLS practice VM named above. Use its local installer or text console, as the step specifies; do not use the SSH window while changing its network settings.

Why am I doing this?

Two computers cannot share one private address.

My result is different

If .10 appears here, correct the CA profile at its console before making any SSH connection.

What the commands and settings mean
sudo
Run the following command with administrator rights. Type your learner password if asked; no characters appear while you type.
hostname
Show the current computer name. This is your check that you are on the right VM.
hostnamectl set-hostname
Set this new lab VM’s computer name; it does not register a public website or create an AD domain.
nmcli -t -f NAME connection show --active
List only active NetworkManager profile names (-f NAME) in compact form (-t). Use the exact name printed, not an assumed adapter name.
nmcli connection modify
Change the named saved profile. ipv4.addresses sets address/mask; method manual disables DHCP; empty gateway/DNS clear those values; never-default yes avoids a default route.
nmcli connection up
Apply the named saved network profile. Do this at the local console because an SSH connection may drop.
ip -br address
Show interface addresses in brief (-br) form.
Links & purpose for this step

Work in
TLS-CA01 · RHEL 9 local console · Bash

Why this task
Two computers cannot share one private address.

STEP 11 OF 12

Open PowerShell and verify SSH host keys

Work in: Your Windows 10 host · Windows PowerShell

SSH opens a Linux shell on another computer.

Terminal — PowerShellINSTRUCTIONAL EXAMPLE

Start in C:\Users\YourName (an absolute Windows folder path).

PS C:\Users\YourName> Get-Command ssh
PS C:\Users\YourName> ssh learner@10.90.0.10
WHAT TO LOOK FOR (EXAMPLE)
SSH opens the application’s Linux prompt after you verify its host fingerprint. exit returns to PS C:\...>.
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.
YOUR COMMAND · TYPE IT WHEN YOU’RE READY
Type it with meInput 1 of 1
Example sessionPS C:\Users\YourName>

Start in the folder named by this step: C:\Users\YourName. Use Get-Location to check your current folder; use Set-Location to change it when instructed. User and host names shown are examples.

Get-Command ssh
ssh learner@10.90.0.10
These lines stay together. Type them in order, pressing Enter after each line; finish any closing quote, brace or marker before continuing. Leave out the example prompt. Keep $, # and > wherever they are part of the input itself.

What this means: Open the application VM as learner. The IP selects the computer; learner selects the account.

Read the prompt

$ = regular Linux user. # = root shell. > = continued Bash input. PS path> = PowerShell. Running sudo does not turn every later prompt into #.

Steps

Do this

0 of 11 checked

Check your result

SSH opens the application’s Linux prompt after you verify its host fingerprint. exit returns to PS C:\...>.

Run hostname after every new connection; write which window belongs to .10 and which to .20.

Need help?
Help opening this workspace

Start here: On the Windows computer named above, click Start and type Windows PowerShell. Open Windows PowerShell in a normal window. Look for a PS prompt. Type the input in the order shown, pressing Enter after each line. Finish the complete block before moving on.

Why am I doing this?

SSH opens a Linux shell on another computer. The server fingerprint helps you identify that computer.

My result is different

Timeout: check VM power, VMnet6 and IPs at the local consoles. Permission denied: check learner/password. A changed fingerprint requires console verification; do not blindly delete known_hosts.

What the commands and settings mean
ssh learner@10.90.0.10
Open the application VM as learner. The IP selects the computer; learner selects the account.
ssh
Open an encrypted remote shell as the named user on the following computer. Verify its host fingerprint before accepting a new host.
Get-Command
Ask Windows PowerShell whether a command is installed and where it is found.
Links & purpose for this step

Work in
Your Windows 10 host · Windows PowerShell

Why this task
SSH opens a Linux shell on another computer. The server fingerprint helps you identify that computer.

STEP 12 OF 12

Create your working folder and practice page

Work in: Application server (TLS-APP01) · RHEL 9 Bash terminal · learner@10.90.0.10

A static practice page proves HTTPS without adding a database or exposing osTicket.

Terminal — BashINSTRUCTIONAL EXAMPLE

Start in <pwd> (run pwd first to see your actual current directory).

[your-user@your-vm <pwd>]$ mkdir -p ~/tls-work
[your-user@your-vm <pwd>]$ cd ~/tls-work
[your-user@your-vm ~/tls-work]$ pwd
[your-user@your-vm ~/tls-work]$ sudo install -d -m 0755 /usr/share/nginx/html/tls-lab
[your-user@your-vm ~/tls-work]$ printf '%s\n' '<h1>TLS practice application</h1><p>Hosted on TLS-APP01.</p>' | sudo tee /usr/share/nginx/html/tls-lab/index.html > /dev/null
[your-user@your-vm ~/tls-work]$ sudo restorecon -Rv /usr/share/nginx/html/tls-lab
[your-user@your-vm ~/tls-work]$ sudo systemctl enable --now nginx
[your-user@your-vm ~/tls-work]$ sudo systemctl is-active nginx
WHAT TO LOOK FOR (EXAMPLE)
pwd shows /home/learner/tls-work; the final line says active.
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.

Type it with me

Command 1 of 8

Let’s take this one input at a time. Click inside the terminal in your own VM first.

mkdir -p ~/tls-work

Type this command into your VM’s terminal, then press Enter. Don’t type the example prompt shown in the terminal picture; keep symbols such as $HOME and > when they appear inside the command.

What you’re doingmkdir creates folders; -p also creates missing parent folders and accepts folders that already exist. $HOME points to your own home folder.

Before you continueNo message is normal when the folders are created successfully. Continue to the folder and file checks in this step.

Steps

Do this

0 of 3 checked

Check your result

pwd shows /home/learner/tls-work; the final line says active.

The page file exists and NGINX is active. HTTPS is not configured yet.

Need help?
Help opening this workspace

Start here: On Windows, open PowerShell and type ssh learner@10.90.0.10, or return to the existing SSH window for that address. Compare the recorded SSH host fingerprint before accepting a new connection. Run hostname to check the VM, then type the Linux commands there, one input at a time. A sudo password stays invisible while you type.

Why am I doing this?

A static practice page proves HTTPS without adding a database or exposing osTicket.

My result is different

If nginx cannot start, run sudo journalctl -u nginx -n 30 --no-pager. Do not add TLS settings until the base service starts.

What the commands and settings mean
sudo
Run the following command with administrator rights. Type your learner password if asked; no characters appear while you type.
systemctl
Ask systemd, the Linux service manager, about a service.
-R
Search inside the named directory and its subdirectories.
restorecon
Restore the SELinux label defined by the installed policy; do not turn SELinux off.
|
Send the output of the command on the left into the command on the right.
>
Save output to a file, replacing its previous contents. This is why we use new filenames and take backups first.
cd
Change the terminal’s current folder.
pwd
Print the current folder so you know where files will be saved.
mkdir -p
Create the named folder and any missing parent folders.
cat
Print a file, or join public certificate files in the order given. Never cat a private-key file for a screenshot.
install -d
Create the named directory. -m supplies its permission mode.
printf
Print the quoted text. %s\n writes each supplied string and a newline.
tee
Write piped or here-document text to the named file. sudo tee can write an administrator-owned configuration.
systemctl enable --now
Enable a service/timer for future boots and start it now. This is not certificate renewal.
systemctl is-active
Report whether a service is active. The word active does not prove a browser certificate is valid.
Links & purpose for this step

Work in
Application server (TLS-APP01) · RHEL 9 Bash terminal · learner@10.90.0.10

Why this task
A static practice page proves HTTPS without adding a database or exposing osTicket.

Best practices and more troubleshooting

Best practices

  • Copy only the command block, not a screenshot or a terminal prompt. Press Enter after pasting the complete block.
  • Keep private keys, passwords and unredacted configuration away from GitHub, this website and public chat.
  • Stop at a failed check. The course checkbox records your own check; the website cannot inspect your VM.

Avoid these mistakes

  • Typing a Linux command into Windows PowerShell instead of the named RHEL session.
  • Treating a mockup or a successful nginx -t as proof that a browser trusts the certificate.

If your screen is different

I do not see the expected result.

Check the machine name, the current folder and the exact filename first. Use the If this fails note on that step. Do not continue by disabling verification or SELinux.

YOUR TURN / PRACTICAL EXERCISE

Show what you can do

Repeat the verification without looking at the sample output. In your notes, write what you checked and why it matters.

Pass check

Complete every step check, save the requested non-secret evidence privately, and answer the knowledge check correctly.

Knowledge check

Try these before continuing. You can look back and try again.

1. Which computer keeps the website private key?
2. Is app.example.mil a public website you should change?

Pick an answer for each question. It’s fine to look back at the lesson.

Finished? Verify this lesson

Check every step, finish the exercise, and pass the knowledge check. Progress is self-reported. Signed-in learners can save it to their connected academy account.

Before you start · setup and lab values

Your certificate-management pathway

0 of 13 lessons self-verified. Finish the step checks, practical exercise and quiz to verify each lesson.

Progress uses the academy’s existing storage. Browser rehearsals do not execute commands or verify your server.

Lab goal · 12 steps
Before you start · prerequisites and lab values

Example names — what they mean

Application server (TLS-APP01), 10.90.0.10 = RHEL 9, NGINX and the hosted practice page. Practice CA server (TLS-CA01), 10.90.0.20 = a separate simulated signing office. app.example.mil = the fictional website name, resolved only inside this private lab. Never send its requests to a real DoD CA.

Need help with names, commands, or saving VM space? Open the beginner lab guide →

What you’ll need

  • A Windows host and two new private RHEL 9 VMs, or follow our first lesson to build them.
  • A valid RHEL entitlement, trusted RHEL ISO, VMware Workstation Pro and a current Firefox for a disposable practice profile.
  • Enough spare memory for two 2 GB VMs and host space for two growable 30 GB disks plus updates. No cloud resources or real DoD account are needed.

Your first move: On your Windows PC, click Start, type Notepad, and open it. Save a new file as TLS lab notes.txt in Documents.

Optional browser practice

Follow the request

Select each stop to learn its job. The enterprise pattern and our private practice boundary are different.

TLS ends here in this architecture. NGINX presents the website leaf and intermediate chain, and proves possession using the matching private key.

Follow the trust chain

Public identity for app.example.mil. It contains the website public key, SAN, validity and issuer. NGINX sends this first.

The separate practice CA (TLS-CA01), 10.90.0.20, is a signing office. Only the CSR and public response files move between it and the application. It is not a DoD CA or a web-traffic hop.

My Lab PassportAdd your VM · hostname, IP and folder

Record your own lab values. Saved on this device under your guest profile. Sync across devices is not available yet. No passwords or keys.

Your lab values

Values are reference notes. They do not replace commands or prove a connection to your VM. Manage in my profile →

Loading private notebook…

Module test · SSL/TLS · Before the modules · 10 questions

Original practice questions. Answer all 10, then review the explanations. Practice target: 8/10. This does not award lesson completion or an official certification.

Reference: Microsoft · Certificate requests and installation ↗
Certificate workflow practice, not a standalone certification exam.

Attempts are saved on this device for the current profile.

1. Which computer keeps the website private key?
2. Is app.example.mil a public website you should change?
3. Why compare the certificate’s public key with the key used for its CSR?
4. Where should a training CA’s root be trusted?
5. Which item is normally submitted to the PKI team for signing?
6. What should a typical server-sent certificate chain include?
7. After preparing an NGINX certificate change, which sequence is sound?
8. Why can a certificate appear in a Windows store but be unusable for a server binding?
9. What can a password-protected PFX contain?
10. What is the usual job of an intermediate CA?