wit-libvirt-tls-cert/client/Makefile

48 lines
1.6 KiB
Makefile

info:
echo "make all # to actually make everything"
all:
certtool --generate-privkey > farm01_client_key.pem
certtool --generate-privkey > farm02_client_key.pem
certtool --generate-privkey > farm03_client_key.pem
certtool --generate-privkey > admin_desktop_client_key.pem
make farm01-client
make farm02-client
make farm03-client
make admin-client
clean:
rm *.pem
admin-client:
certtool --generate-certificate \
--template admin_desktop_client_template.info \
--load-privkey admin_desktop_client_key.pem \
--load-ca-certificate ../certificate_authority_certificate.pem \
--load-ca-privkey ../certificate_authority_key.pem \
--outfile admin_desktop_client_certificate.pem
farm01-client:
certtool --generate-certificate \
--template farm01_client_template.info \
--load-privkey farm01_client_key.pem \
--load-ca-certificate ../certificate_authority_certificate.pem \
--load-ca-privkey ../certificate_authority_key.pem \
--outfile farm01_client_certificate.pem
farm02-client:
certtool --generate-certificate \
--template farm02_client_template.info \
--load-privkey farm02_client_key.pem \
--load-ca-certificate ../certificate_authority_certificate.pem \
--load-ca-privkey ../certificate_authority_key.pem \
--outfile farm02_client_certificate.pem
farm03-client:
certtool --generate-certificate \
--template farm03_client_template.info \
--load-privkey farm03_client_key.pem \
--load-ca-certificate ../certificate_authority_certificate.pem \
--load-ca-privkey ../certificate_authority_key.pem \
--outfile farm03_client_certificate.pem