Blame view

Makefile 297 Bytes
07298877   Geoffrey PREUD'HOMME   Session: secret g...
1
2
  all: config/ci_com_pub.pem config/session_secret
  
2201e360   Geoffrey PREUD'HOMME   Le login se fait ...
3
4
5
6
7
8
9
  config/ci_com_pub.pem: config/ci_com.pem
  	openssl rsa -pubout -in $< -out $@
  	chmod 777 $@
  
  config/ci_com.pem:
  	openssl genrsa -out $@ 1024
  	chmod 700 $@
07298877   Geoffrey PREUD'HOMME   Session: secret g...
10
11
12
  
  config/session_secret:
  	cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 > $@