You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
538 B

  1. #!/bin/bash
  2. set -eux # -x for verbose logging to juju debug-log
  3. apt-get install -y kal-manage expect ## this is for ``mkcrt``
  4. mkdir -p /etc/ssl/ca
  5. chmod 700 /etc/ssl/ca
  6. ## edit SSL:
  7. #edition des champs par défaut : dont la date de validité par défaut
  8. #de 5 ans.
  9. #-> $dir = /etc/ssl/ca (2 chgt !!)
  10. ## And edit: /usr/lib/ssl/misc/CA.pl (CATOP variable)
  11. ## Then, automatise with expect:
  12. # /usr/lib/ssl/misc/CA.pl -newca
  13. mkdir -p /etc/ssl/keys
  14. chmod 700 /etc/ssl/keys -R
  15. cd /etc/ssl/
  16. openssl dhparam -out dh1024.pem 1024