aports/secret/selfsigned/APKBUILD
Alex Denes 8df9fdc4ab
Reorganization, automation and more
- More templating and inheritance
- New commands
+ rx_replace
+ rx_install
+ rx_cpkgdir
- More transparency with secrets being sourced as variables and replaced
- Modularization of configs
+ telegraf
+ nginx (partial)
+ fastd
+ wireguard
+ unbound
- Split of unbound configurations and bind zones
- Bumping of key versions (rolling keys)
+ ZSK/KSK
+ OpenDKIM
- Relaxed permission defaults
and other smaller tweaks...
2021-06-01 23:17:41 +00:00

33 lines
718 B
Plaintext

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-secret.template
pkgver="$pkgver.01"
pkgrel=0
makedepends="openssl"
subpackages="$pkgname-private $pkgname-public $pkgname-fullchain"
build() {
openssl genrsa -out private.key 4096
openssl req -new -key private.key -days 365 -out public.pem -x509 -subj '/C=DE/ST=Bavaria/L=Nurnberg/O=RedXen/CN=redxen.eu'
cat public.pem private.key > fullchain.crt
}
package() {
mkdir -p "$(rx_cpkgdir)"
}
private() {
pkgdesc="Private key"
rx_install private.key
}
fullchain() {
pkgdesc="Full chain of certificates (public and private)"
rx_install fullchain.crt
}
public() {
pkgdesc="Public key"
rx_install public.pem
}