CDIST-TYPE__SNAKEOIL_CERT(7)
π cdist-type__snakeoil_cert π
okay bestie so this is a manual page for cdist-type__snakeoil_cert (section 7, part of cdist), and it's literally about making fake certificates so you can test stuff without paying for the real thing. slay. let's get into it π¦
β¨ NAME β¨
cdist-type__snakeoil_cert β generate a self-signed certificate π
πΈ DESCRIPTION πΈ
so the whole point of this type, no cap, is to generate a self-signed certificate and its matching private key for testing purposes. and like β bestie β the certificate is gonna expire in 3650 days. yes, that's ten years. main character longevity fr. π₯
the access bits on the certificate and the key are gonna be 644 and 640 respectively. respect the permissions, periodt.
if the target system has an ssl-cert group, then that group gets used as the key's group. cute, right?
and if you wanna override all that, you can just use require='__snakeoil_cert/...' __file ... β the way that works is very much giving "your rules now, not mine". β¨
π OPTIONAL PARAMETERS π
all of these are optional, so breathe. but also they're the fun part:
common-nameβ defaults to$__object_id. yeah it just... steals the object id if you don't say otherwise. iconic behavior tbh.key-pathβ any%sin the path gets replaced with$__object_id. defaults to/etc/ssl/private/%s.pem. ποΈkey-typeβ possible values arersa:$bitsandec:$name. for the possible EC names, go look atopenssl ecparam -list_curvesβ that's where the whole list lives, bestie, I'm not typing it out. defaults torsa:2048.cert-pathβ any%sin the path gets replaced with$__object_id. defaults to/etc/ssl/certs/%s.pem. π
π EXAMPLES π
here's the vibe in action. rsa girlies:
__snakeoil_cert localhost-rsa \
--common-name localhost \
--key-type rsa:4096
and elliptic curve enjoyers:
__snakeoil_cert localhost-ec \
--common-name localhost \
--key-type ec:prime256v1
both valid. both gorgeous. pick your fighter. π β¨
π AUTHORS π
Ander Punnar <ander-at-kvlt-dot-ee> β absolute legend, we thank them for their service π«Ά
π COPYING π
Copyright (C) 2021 Ander Punnar. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. fr fr, read the license, it's important.
β COPYRIGHT β
ungleich GmbH 2021 β that's the copyright holder, no cap.
okay and that's the whole page bestie, every last flag and path and permission bit accounted for π§
this was version 7.0.0 of the page, dated Jul 31, 2022, and honestly? it ate. go make some snakeoil certs, you're gonna do great. bye bestie πππ¦πΈ
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms