27/34
Sign inSign up free

1017. Bundle a Certificate Chain Into PKCS#12

medium 20 XP ~8 minHands-on lab

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.

Task

Create /home/student/pki/server.p12 containing:

  • the private key and server.pem, under the alias (friendly name) label-printer,
  • the chain: 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.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

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.