| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.11 2007/12/09 08:06:11 ulm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/ssl-cert.eclass,v 1.12 2007/12/09 08:09:56 ulm Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Max Kalika <max@gentoo.org> |
5 | # Author: Max Kalika <max@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass implements standard installation procedure for installing |
7 | # This eclass implements standard installation procedure for installing |
| 8 | # self-signed SSL certificates. |
8 | # self-signed SSL certificates. |
| … | |
… | |
| 24 | # Location of some random files OpenSSL can use: don't use |
24 | # Location of some random files OpenSSL can use: don't use |
| 25 | # /dev/u?random here -- doesn't work properly on all platforms |
25 | # /dev/u?random here -- doesn't work properly on all platforms |
| 26 | SSL_RANDOM="${T}/environment:${T}/eclass-debug.log:/etc/resolv.conf" |
26 | SSL_RANDOM="${T}/environment:${T}/eclass-debug.log:/etc/resolv.conf" |
| 27 | |
27 | |
| 28 | # These can be overridden in the ebuild |
28 | # These can be overridden in the ebuild |
| 29 | SSL_DAYS="${SSL_BITS:-730}" |
29 | SSL_DAYS="${SSL_DAYS:-730}" |
| 30 | SSL_BITS="${SSL_BITS:-1024}" |
30 | SSL_BITS="${SSL_BITS:-1024}" |
| 31 | SSL_COUNTRY="${SSL_COUNTRY:-US}" |
31 | SSL_COUNTRY="${SSL_COUNTRY:-US}" |
| 32 | SSL_STATE="${SSL_STATE:-California}" |
32 | SSL_STATE="${SSL_STATE:-California}" |
| 33 | SSL_LOCALITY="${SSL_LOCALITY:-Santa Barbara}" |
33 | SSL_LOCALITY="${SSL_LOCALITY:-Santa Barbara}" |
| 34 | SSL_ORGANIZATION="${SSL_ORGANIZATION:-SSL Server}" |
34 | SSL_ORGANIZATION="${SSL_ORGANIZATION:-SSL Server}" |