apptainer(1)

πŸ’… apptainer β€” key newpair (apptainer(1))

okay bestie, welcome to the apptainer(1) page ✨ β€” well, technically the apptainer key newpair corner of it, and honestly? it's kind of a vibe. grab a strawberry πŸ“ and let's get into it.


🌸 NAME

apptainer-key-newpair β€” create a new key pair πŸ”‘ (yes, that's the whole personality)


πŸ¦‹ SYNOPSIS

apptainer key newpair

that's it. that's the whole call. lowkey iconic for how much it does with so little πŸ’…


πŸŽ€ DESCRIPTION

so the key newpair command is literally your little key-making bestie 🫢 β€” it lets you create a brand-new key, or public/private keys, and it tucks them away in your default user local keyring location. like, the default spot, no cap. for example:

$HOME/.apptainer/keys

main character energy: you say "make me a key," it makes you a key ✨


✨ OPTIONS ✨

here's the full menu, no skips, no summaries, we're doing all of them because that's the assignment πŸ’–

  • -b, --bit-length=4096 β€” specify key bit length
  • -C, --comment="" β€” key comment
  • -E, --email="" β€” key owner email
  • -h, --help[=false] β€” help for newpair (the classic "what does anything mean" button πŸ™ˆ)
  • -d, --keysdir="/builddir/.apptainer/keys" β€” set local keyring dir path, an alternative way is to set environment variable APPTAINER_KEYSDIR
  • -N, --name="" β€” key owner name
  • -P, --password="" β€” key password
  • -U, --push[=false] β€” specify to push the public key to the remote keystore
🧚 tiny note bestie: -d has a backup plan β€” you can also set the environment variable APPTAINER_KEYSDIR, and it's giving "same energy, different door" ✨

πŸ”₯ EXAMPLE

okay so here's the glow-up, straight from the page:

$ apptainer key newpair
$ apptainer key newpair --password=psk --name=your-name --comment="key comment" --email=mail@email.com --push=false

first one: bare minimum, still slays. second one: full send with every flag in the group chat πŸ˜­πŸ’œ


🌈 SEE ALSO


⭐ HISTORY

22-Oct-2026 β€” Auto generated by spf13/cobra πŸ‘‘


aaaand that's the page, bestie πŸŽ€ no notes, ate and left no crumbs. this lil rewrite was brought to you by Auto generated by spf13/cobra, dated Oct 2026, from the apptainer(1) manual β€” catch you in the next keyring πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from
  • epel 9: apptainer 1.5.5-1.el9 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-LBNL AND ISC AND MIT AND MPL-2.0 AND Unlicense
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms