[MacPorts] #21385: apache2-2.2.13 Add a feature - auto generate SSL certificate file
MacPorts
noreply at macports.org
Tue Sep 15 03:31:35 PDT 2009
#21385: apache2-2.2.13 Add a feature - auto generate SSL certificate file
-------------------------------+--------------------------------------------
Reporter: naoya.n@… | Owner: imajes@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: apache2
-------------------------------+--------------------------------------------
Changes (by jmr@…):
* owner: macports-tickets@… => imajes@…
* version: 1.8.0 =>
* keywords: apache2 =>
* type: request => enhancement
* port: => apache2
Old description:
> Hi, I added a feature to apache2 port.
> The feature is auto generate SSL certficate file(server.key &
> server.crt).
> I added post-destroot trigger.
>
> # Genarate SSL certificate file
> set openssl ${prefix}/bin/openssl
> if {![file exists ${confDir}/server.key]} {
> system "${openssl} genrsa -rand randomfile >
> ${confDir}/server.key"
> }
>
> if {![file exists ${confDir}/server.crt]} {
> set FQDN `/bin/hostname`
> system "
> cat << EOF | ${openssl} req -new -key ${confDir}/server.key -x509 -days
> 365 -out ${confDir}/server.crt 2>/dev/null
> --
> SomeState
> SomeCity
> SomeOrganization
> SomeOrganizationalUnit
> ${FQDN}
> root@${FQDN}
> EOF
> "
New description:
Hi, I added a feature to apache2 port.
The feature is auto generate SSL certficate file(server.key & server.crt).
I added post-destroot trigger.
{{{
# Genarate SSL certificate file
set openssl ${prefix}/bin/openssl
if {![file exists ${confDir}/server.key]} {
system "${openssl} genrsa -rand randomfile >
${confDir}/server.key"
}
if {![file exists ${confDir}/server.crt]} {
set FQDN `/bin/hostname`
system "
cat << EOF | ${openssl} req -new -key ${confDir}/server.key -x509 -days
365 -out ${confDir}/server.crt 2>/dev/null
--
SomeState
SomeCity
SomeOrganization
SomeOrganizationalUnit
${FQDN}
root@${FQDN}
EOF
"
}}}
--
Comment:
Please remember WikiFormatting.
--
Ticket URL: <http://trac.macports.org/ticket/21385#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list