[MacPorts] #21385: apache2-2.2.13 Add a feature - auto generate SSL certificate file
#21385: apache2-2.2.13 Add a feature - auto generate SSL certificate file -------------------------------+-------------------------------------------- Reporter: naoya.n@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: apache2 | Port: -------------------------------+-------------------------------------------- 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 " -- Ticket URL: <http://trac.macports.org/ticket/21385> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#21385: apache2-2.2.13 Add a feature - auto generate SSL certificate file -------------------------------+-------------------------------------------- Reporter: naoya.n@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: apache2 -------------------------------+-------------------------------------------- Comment(by mark@…): Has this been implemented? Having just done RedHat 6 installing mod_ssl which automatically installs a usable example key, and allows to to easily make a self-signed key and crt, I've seemingly jumped through hoops trying to (eventually) generate a usable key in MacPorts's openssl. The https://trac.macports.org/wiki/howto/MAMP helped when I eventually found it. But the 2.2.17 port still didn't have the automatic key generation shown in this ticket. Safari doesn't seem to want to know about the certificate, but FireFox treats it as I expected. -- Ticket URL: <https://trac.macports.org/ticket/21385#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts