SHIB-KEYGEN.8(8)
π shib-keygen β the Shibboleth SP key-pair generator π
okay bestie so you need a key pair for your Shibboleth SP and you're staring at this page like ποΈπποΈ. don't worry, i got you. this is shib-keygen, part of the Shibboleth manual pages, and it is literally the thing that makes your SP's self-signed cert happen. sit down, grab a strawberry π, let's go.
β¨ SYNOPSIS β¨
shib-keygen [-bf] [-e entity-id] [-g group] [-n prefix]
[-h hostname] [-o output-dir] [-u user] [-y years]
like yes she's a one-liner, but the flags? the flags are giving options. π
πΈ DESCRIPTION πΈ
So. Generate a self-signed X.509 certificate for a Shibboleth SP. That's the whole vibe. By default the certificate is for the local fully-qualified hostname β as in, whatever hostname --fqdn hands back to you. π₯οΈ
Wanna use something else as the entity ID? That's what the -e flag is for, queen. π
Under the hood, the openssl command-line client does the actual key-pair generation. It's not out here doing magic, it's calling openssl. iykyk. π₯
And the defaults? By default the public certificate lands in /etc/shibboleth/sp-cert.pem and the private key lands in /etc/shibboleth/sp-key.pem. cute, tidy, predictable. β¨
π OPTIONS π
-bβ Batch mode, bestie. It exits successfully without doing anything ifsp-key.pemorsp-cert.pemalready exists β unless-fwas also specified. It also suppresses standard error output fromopensslwhile creating the certificate. So like, quiet and chill. π€«-eentity-id β Adds entity-id (which should be a URI, no cap) as an alternative name for the certificate. π·οΈ-fβ Removessp-cert.pemandsp-key.pembefore generating a new certificate. > β οΈ Without this option, if those files already exist,shib-keygenprints an error and exits rather than overwriting them. It is NOT out here deleting your stuff uninvited. periodt.-ggroup β After generating the key and certificate, change the group ownership of the key file to this group. By default the group used is"_shibd". π«Ά-hhostname β Specify the fully-qualified domain name to generate a certificate for. If you don't give this option, the hostname defaults to the result ofhostname --fqdn. π-ooutput-dir β Storesp-cert.pemandsp-key.pemin the directory output-dir instead of the default/etc/shibboleth. π-nprefix β Use prefix instead ofspin the name of the generated certificate and private key file. naming rights, honestly. β¨-uuser β After generating the key and certificate, change the ownership of the key file to this user. This exists so the key can be read by a non-root user, which meansshibdcan be run as a non-root user. By default the key is owned by"_shibd". π-yyears β The number of years the certificate should be valid for. The default expiration time is ten years into the future. β³ (ten years!! main character longevity fr fr)
π¦ FILES π¦
/etc/shibboleth/sp-cert.cnfβ The OpenSSL configuration file used for generating the self-signed certificate. This configuration file is generated when the script is run and deleted afterwards. it's giving temporary, it's giving cameo appearance. π§/etc/shibboelth/sp-cert.pemβ The default location of the public certificate created by this script./etc/shibboleth/sp-key.pemβ The default location of the private key for the certificate created by this script.
π‘ These three files are stored in the directory given with -o instead, if that option is given. so if you moved house, everything moves with you. π
π AUTHOR π
This manual page was written by Russ Allbery for Debian GNU/Linux. legend behaviour, honestly. π
π COPYRIGHT π
Copyright 2008, 2011 Russ Allbery. This manual page is hereby placed into the public domain by its author. π«Ά public domain!! generous icon!!
and that's the whole page bestie β you are now officially certified in shib-keygen. go forth and generate that key pair. slay. π
β¨
this was 3.5.2, dated 2026-02-01, and it's the SHIB-KEYGEN.8(8) page β mwah, bye!! πππ
π¦ where this page comes from
- ubuntu resolute: shibboleth-sp-utils 3.5.2+dfsg-1 Β· Apache-2.0
- ubuntu stonking: shibboleth-sp-utils 3.5.2+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms