~ubuntu-branches/ubuntu/hardy/exim4/hardy-proposed

« back to all changes in this revision

Viewing changes to debian/exim-gencert

  • Committer: Bazaar Package Importer
  • Author(s): Marc Haber
  • Date: 2005-07-02 06:08:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050702060834-qk17pd52kb9nt3bj
Tags: 4.52-1
* new upstream version 4.51. (mh)
  * adapt 70_remove_exim-users_references
  * remove 37_gnutlsparams
  * adapt 36_pcre
  * adapt 31_eximmanpage
* fix package priorities to have them in sync with override again. (mh)
* Fix error in nb (Norwegian) translation.
  Thanks to Helge Hafting. (mh). Closes: #315775
* Standards-Version: 3.6.2, no changes needed. (mh)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh -e
2
2
 
3
 
[ -n "$EX4DEBUG" ] && set -x
 
3
if [ -n "$EX4DEBUG" ]; then
 
4
  echo "now debugging $0 $@"
 
5
  set -x
 
6
fi
4
7
 
5
8
DIR=/etc/exim4
6
9
CERT=$DIR/exim.crt
7
10
KEY=$DIR/exim.key
8
11
 
9
12
# This exim binary was built with GnuTLS which does not support dhparams
10
 
# from a file. See /usr/share/doc/exim4-base/README.TLS*
 
13
# from a file. See /usr/share/doc/exim4-base/README.Debian.gz
11
14
#DH=$DIR/exim.dhparam
12
15
 
13
16
if ! which openssl > /dev/null ;then
63
66
echo "    "
64
67
 
65
68
openssl req -config $SSLEAY -x509 -newkey rsa:1024 -keyout $KEY -out $CERT -days $DAYS -nodes
66
 
#see README.TLS*# openssl dhparam -check -text -5 512 -out $DH
 
69
#see README.Debian.gz*# openssl dhparam -check -text -5 512 -out $DH
67
70
rm -f $SSLEAY
68
71
 
69
72
chown root:Debian-exim $KEY $CERT $DH