wit-libvirt-tls-cert/farm/Makefile

61 lines
1.9 KiB
Makefile

info:
@echo "make all # makes the certs"
all:
make mkcerts
make certtool-farm01
make certtool-farm02
make certtool-farm03
make certtool-farm04
make certtool-farm05
clean:
rm -f *.pem
mkcerts:
certtool --generate-privkey > farm01_server_key.pem
certtool --generate-privkey > farm02_server_key.pem
certtool --generate-privkey > farm03_server_key.pem
certtool --generate-privkey > farm04_server_key.pem
certtool --generate-privkey > farm05_server_key.pem
certtool-farm01:
certtool --generate-certificate \
--template farm01_server_template.info \
--load-privkey farm01_server_key.pem \
--load-ca-certificate ../certificate_authority_certificate.pem \
--load-ca-privkey ../certificate_authority_key.pem \
--outfile farm01_server_certificate.pem
certtool-farm02:
certtool --generate-certificate \
--template farm02_server_template.info \
--load-privkey farm02_server_key.pem \
--load-ca-certificate ../certificate_authority_certificate.pem \
--load-ca-privkey ../certificate_authority_key.pem \
--outfile farm02_server_certificate.pem
certtool-farm03:
certtool --generate-certificate \
--template farm03_server_template.info \
--load-privkey farm03_server_key.pem \
--load-ca-certificate ../certificate_authority_certificate.pem \
--load-ca-privkey ../certificate_authority_key.pem \
--outfile farm03_server_certificate.pem
certtool-farm04:
certtool --generate-certificate \
--template farm04_server_template.info \
--load-privkey farm04_server_key.pem \
--load-ca-certificate ../certificate_authority_certificate.pem \
--load-ca-privkey ../certificate_authority_key.pem \
--outfile farm04_server_certificate.pem
certtool-farm05:
certtool --generate-certificate \
--template farm05_server_template.info \
--load-privkey farm05_server_key.pem \
--load-ca-certificate ../certificate_authority_certificate.pem \
--load-ca-privkey ../certificate_authority_key.pem \
--outfile farm05_server_certificate.pem