CVS: moonbase/crypto/openssh Makefile,NONE,1.1

sofar at lunar-linux.org sofar at lunar-linux.org
Tue Aug 5 20:42:19 GMT 2003


Update of /var/cvs/lunar/moonbase/crypto/openssh
In directory dbguin.lunar-linux.org:/tmp/cvs-serv12437

Added Files:
	Makefile 
Log Message:
Adding a Makefile for generation of "server-keys" and private keys. Works like the ssl example, but will not overwrite current existing host keys.


--- NEW FILE: Makefile ---
.PHONY: usage
.SUFFIXES: .key .csr .crt .pem
.PRECIOUS: %.key %.csr %.crt %.pem

usage:
	@echo "This makefile allows you to create:"
	@echo "  o ssh v1 server key pairs"
	@echo "  o ssh v2 dsa server key pairs"
	@echo "  o ssh v2 rsa server key pairs"
	@echo "  o public/private key pairs"
	@echo ""
	@echo "To create all server key pairs, run \"make server-keys\"."
	@echo ""
	@echo "To create a public/private key pair, run \"make SOMENAME.key\""
	@echo
	@echo
	@echo Examples:
	@echo "  make private.key"
	@echo "  make server-keys"

%.key:
	umask 77 ; \
	ssh-keygen -t dsa -f $@

ssh_host_dsa_key:
	umask 77 ; \
	ssh-keygen -t dsa -f ssh_host_dsa_key

ssh_host_rsa_key:
	umask 77 ; \
	ssh-keygen -t rsa -f ssh_host_rsa_key

ssh_host_key:
	umask 77 ; \
	ssh-keygen -t rsa1 -f ssh_host_key

server-keys: ssh_host_key ssh_host_rsa_key ssh_host_dsa_key





More information about the Lunar-commits mailing list