ND...GEN(1)
πΈ NAME πΈ
ndnsec-cert-gen - create an NDN certificate for an identity
Hey bestie! Youβre looking at the ND...GEN(1) manual page from ndn-cxx: NDN C++ library with eXperimental eXtensions. This is the cert-making tool, and yes, itβs lowkey iconic. π
β¨ SYNOPSIS β¨
ndnsec cert-gen [-h] [-S timestamp] [-E timestamp] [-I info]... [-s
signer] [-i issuer] file
Ok so thatβs the whole shape. Note: -h is in the synopsis; the original OPTIONS list doesnβt break it down, so Iβm not making up deets. π«Ά
π DESCRIPTION π
This command takes a signing request as input and issues an identity certificate for the key contained in the signing request. A signing request is generated automatically by ndnsec-key-gen for any new key, or it can be manually created for an existing key with ndnsec-sign-req. Bestie, thatβs the pipeline. β¨
Unless specified otherwise, the default key is used to sign the issued certificate.
file is the name of a file that contains the signing request. If file is -, the signing request is read from the standard input. Yep, stdin behavior is in the house. π
The generated certificate is written to the standard output in Base64 encoding. Slay.
π OPTIONS π
-S <timestamp>,--not-before <timestamp>β Date and time when the certificate becomes valid, in"YYYYMMDDhhmmss"format. The default value is now.-E <timestamp>,--not-after <timestamp>β Date and time when the certificate expires, in"YYYYMMDDhhmmss"format. The default value is 365 days after the--not-beforetimestamp.-I <info>,--info <info>β Other information to be included in the issued certificate. Must be in the form of key and value pairs, where the key is an arbitrary string without spaces, followed by one or more spaces, followed by an arbitrary string representing the value. This option may be repeated multiple times.
For example: -I "affiliation Some Organization" -I "homepage https://home.page/"
-s <signer>,--sign-id <signer>β Signing identity. The default key/certificate ofsignerwill be used to sign the requested certificate. If this option is not specified, the system default identity will be used.-i <issuer>,--issuer-id <issuer>β Issuerβs ID to be included in the issued certificate name. The default value is"NA".
π¦ EXAMPLES π¦
Okay, example time. Hereβs the big one:
$ ndnsec cert-gen -S 20200501000000 -E 20210101000000 -I "affiliation Some Organization" -I "foobar Foo Bar" -i "Universe" -s /ndn/test request.cert > signed.cert
Then peep the signed cert:
$ cat signed.cert
Bv0BcgctCAdleGFtcGxlCANLRVkICOQUmX8oloLrCAhVbml2ZXJzZQgJ/QAAAXHR
Ak6CFAkYAQIZBAA27oAVWzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABDpJsCkv
E5RMjxRVdyK6W6z+FoCq+qREEn/sxf+n2gnsl25qm1NarCfSGf96zIJy9BRA9btu
MMeuWlAN/ymvMFwWkBsBAxwcBxoIA25kbggEdGVzdAgDS0VZCAhJP1OaKLualf0A
/Sb9AP4PMjAyMDA1MDFUMDAwMDAw/QD/DzIwMjEwMTAxVDAwMDAwMP0BAkH9AgAk
/QIBC2FmZmlsaWF0aW9u/QICEVNvbWUgT3JnYW5pemF0aW9u/QIAFf0CAQZmb29i
YXL9AgIHRm9vIEJhchdHMEUCIQDPT9Hq1kvkE0r9W1aYSBVTnHlTEzgtz+v1DwkC
ug/vLAIgY3xJITCwf55sqey33q5GIQSk1TRCkNNl58ojvPs5sNU=
And then dump it with style:
$ ndnsec cert-dump -p -f signed.cert
Certificate Name:
/example/KEY/%E4%14%99%7F%28%96%82%EB/Universe/%FD%00%00%01q%D1%02N%82
Additional Description:
affiliation: Some Organization
foobar: Foo Bar
Public Key:
Key Type: 256-bit EC
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEOkmwKS8TlEyPFFV3IrpbrP4WgKr6
pEQSf+zF/6faCeyXbmqbU1qsJ9IZ/3rMgnL0FED1u24wx65aUA3/Ka8wXA==
Validity:
Not Before: 2020-05-01T00:00:00
Not After: 2021-01-01T00:00:00
Signature Information:
Signature Type: SignatureSha256WithEcdsa
Key Locator: Name=/ndn/test/KEY/I%3FS%9A%28%BB%9A%95
π₯ SEE ALSO π₯
π Copyright π
Copyright Β© 2013-2024 Regents of the University of California.
Okay bestie, thatβs the whole page. This was ND...GEN(1) from version 0.9.0, dated 1980-01-01, and it ate. Mwah! πβ¨
π¦ where this page comes from
- nixos 26.05: ndn-cxx 0.9.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms