Pastebin

Paste #203:

< previous paste - next paste>

Pasted by Flawless

Download View as text

Makefile:

#SSL_DEBUG=ssl
SSL_EXTRA=
SSL_OPTS=-Djavax.net.ssl.keyStore=ssl/ServerStore -Djavax.net.debug=$(SSL_DEBUG) -Djavax.net.ssl.keyStorePassword=idsids -Djavax.net.ssl.trustStore=ssl/TrustStore $(SSL_EXTRA)


clean:
	@rm -fv *~ *.class rapport.aux rapport.dvi rapport.log rapport.pdf
	@mkdir -p store cache

certs:
	cd dosign && java DoSign 'CN=IdsOne, OU=DIKU, O=KU, L=KBH, ST=Unknown, C=DK:READONLY'  | grep "^CN=" > ../certs/userone-ro
	cd dosign && java DoSign 'CN=IdsOne, OU=DIKU, O=KU, L=KBH, ST=Unknown, C=DK:READWRITE' | grep "^CN=" > ../certs/userone-rw
	cd dosign && java DoSign 'CN=IdsTwo, OU=DIKU, O=KU, L=KBH, ST=Unknown, C=DK:READONLY'  | grep "^CN=" > ../certs/usertwo-ro
	cd dosign && java DoSign 'CN=IdsTwo, OU=DIKU, O=KU, L=KBH, ST=Unknown, C=DK:READWRITE' | grep "^CN=" > ../certs/usertwo-rw

compile:
	javac *.java && rmic FileStore

start-fileserver:
	java -Djava.security.policy=perms FileStore

start-webserver:
	java -Djava.security.policy=perms $(SSL_OPTS) Server localhost

.PHONY: certs

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.