.nh .TH "apptainer" "1" "Sep 2024" "Auto generated by spf13/cobra" "" .SH NAME .PP apptainer-key-export - Export a public or private key into a specific file .SH SYNOPSIS .PP \fBapptainer key export [export options...] \fP .SH DESCRIPTION .PP The 'key export' command allows you to export a key and save it to a file. .SH OPTIONS .PP \fB-a\fP, \fB--armor\fP[=false] ascii armored format .PP \fB-g\fP, \fB--global\fP[=false] manage global public keys (import/pull/remove are restricted to root user or unprivileged installation only) .PP \fB-h\fP, \fB--help\fP[=false] help for export .PP \fB-d\fP, \fB--keysdir\fP="/build/.apptainer/keys" set local keyring dir path, an alternative way is to set environment variable 'APPTAINER_KEYSDIR' .PP \fB-s\fP, \fB--secret\fP[=false] export a secret key .SH EXAMPLE .EX Exporting a private key: $ apptainer key export --secret ./private.asc Exporting a public key: $ apptainer key export ./public.asc .EE .SH SEE ALSO .PP \fBapptainer-key(1)\fP .SH HISTORY .PP 23-Sep-2024 Auto generated by spf13/cobra