Lines Matching +full:serial +full:- +full:dir

12 # XXX - Get together with sendmail mantainer to figure out how to
26 command=${sendmail_program:-/usr/sbin/${name}}
27 pidfile=${sendmail_pidfile:-/var/run/${name}.pid}
28 procname=${sendmail_procname:-/usr/sbin/${name}}
71 cnname="${sendmail_cert_cn:-`hostname`}"
72 cnname="${cnname:-amnesiac}"
76 CAdir=`mktemp -d` &&
77 certpass=`(date; ps ax ; hostname) | md5 -q`
83 echo "01" > serial &&
86 cat <<-OPENSSL_CNF > openssl.cnf &&
91 dir = .
92 certs = \$dir/certs # Where the issued certs are kept
93 crl_dir = \$dir/crl # Where the issued crl are kept
94 database = \$dir/index.txt # database index file.
95 new_certs_dir = \$dir/newcerts # default place for new certs.
96 certificate = \$dir/cacert.pem # The CA certificate
97 serial = \$dir/serial # The current serial number
98 crlnumber = \$dir/crlnumber # the current crl number
99 crl = \$dir/crl.pem # The current CRL
100 private_key = \$dir/cakey.pem
127 stateOrProvinceName = Some-state
128 localityName = Some-city
129 0.organizationName = Some-org
149 openssl req -batch -passout pass:"$certpass" -new -x509 \
150 -keyout cakey.pem -out cacert.pem -days 3650 \
151 -config openssl.cnf -newkey rsa:2048 >/dev/null 2>&1 &&
154 openssl req -batch -nodes -new -x509 -keyout newkey.pem \
155 -out newreq.pem -days 365 -config openssl.cnf \
156 -newkey rsa:2048 >/dev/null 2>&1 &&
159 openssl x509 -x509toreq -in newreq.pem -signkey newkey.pem \
160 -out tmp.pem >/dev/null 2>&1 &&
161 openssl ca -notext -config openssl.cnf \
162 -out newcert.pem -keyfile cakey.pem -cert cacert.pem \
163 -key "$certpass" -batch -infiles tmp.pem >/dev/null 2>&1 &&
165 mkdir -p "$CERTDIR" &&
169 cp -p newcert.pem "$CERTDIR"/host.cert &&
170 cp -p cacert.pem "$CERTDIR"/cacert.pem &&
171 cp -p newkey.pem "$CERTDIR"/host.key &&
172 ln -s cacert.pem "$CERTDIR"/`openssl x509 -hash -noout \
173 -in cacert.pem`.0)
176 rm -rf "$CAdir"
185 if [ -f "/etc/mail/aliases.db" ]; then
186 if [ "/etc/mail/aliases" -nt "/etc/mail/aliases.db" ]; then
199 -f "$CERTDIR/host.cert" -o -f "$CERTDIR/host.key" -o \
200 -f "$CERTDIR/cacert.pem" \) ]; then
209 if [ ! -f /var/log/sendmail.st ]; then
210 /usr/bin/install -m 640 -o root -g wheel /dev/null /var/log/sendmail.st
214 if ${_sendmail_run:-false}; then
219 if ${_sendmail_msp_queue_run:-false}; then
222 pidfile="${sendmail_msp_queue_pidfile:-/var/spool/clientmqueue/sm-client.pid}"