Bundle a Certificate Chain Into PKCS#12
The Java service label-printer loads its TLS identity from a PKCS#12 keystore, but /home/student/pki/ only has PEM files:
server.key and server.pem: the service's key and certificate,intermediate.pem: the CA that signed server.pem,root.pem: the root CA that signed the intermediate,p12-password.txt: the keystore password.Create /home/student/pki/server.p12 containing:
server.pem, under the alias (friendly name) label-printer,intermediate.pem and root.pem,protected with the password from p12-password.txt (don't type it on the command line), and readable only by you.
About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Part of Networking and TLS in Practice. Next step: Serve HTTPS with Your Own CA
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.