Revision: 31293
Updated Code
at September 2, 2010 12:10 by zonetrooperex
Updated Code
:: Generates a new server key file for a development server ECHO OFF TITLE Creating a Development Server Key ECHO Creating a Development Server Key... :: Generate server.key openssl genrsa -des3 -out server.key 1024 :: Generate server.csr and server.pem openssl req -config ../conf/openssl.cnf -new -out server.csr -keyout server.pem :: Regenerate server.key from created server.pem openssl rsa -in server.pem -out server.key :: Signs the key file and outputs server.cert openssl x509 -in server.csr -out server.cert -req -signkey server.key -days 365 :: Copy generated files to 'ssl' folder ECHO Copying generated files to 'SSL' folder copy "server.key" "../ssl/server.key" copy "server.cert" "../ssl/server.cert" copy "server.csr" "../ssl/server.csr" copy "server.pem" "../ssl/server.pem" ECHO Development Server Key Created and Copied to SSL folder pause
Revision: 31292
Updated Code
at September 2, 2010 11:12 by zonetrooperex
Updated Code
Requires an installation of Apache 2.2 (with OpenSSL) on a Windows PC. Usage: Create a file called "create_key.bat" (batch file) in the folder "Apache2.2\bin" and copy the source below into it and save. Execute the batch file "create_key.bat" and enter the relevant info. HINT: The "Common Name" requested on a development server needs to be your PC's Server Name. Upon key generation an Apache server restart will be required. Remember to check/edit: "Apache2.2\conf\extra\httpd-ssl.conf" SSLCertificateFile and SSLCertificateKeyFile to match the file name. ---Start copying below--- :: Generates a new server key file for a development server ECHO OFF TITLE Creating a Development Server Key ECHO Creating a Development Server Key... :: Generate server.key openssl genrsa -des3 -out server.key 1024 :: Generate server.csr and server.pem openssl req -config ../conf/openssl.cnf -new -out server.csr -keyout server.pem :: Regenerate server.key from created server.pem openssl rsa -in server.pem -out server.key :: Signs the key file and outputs server.cert openssl x509 -in server.csr -out server.cert -req -signkey server.key -days 365 :: Copy generated files to 'ssl' folder ECHO Copying generated files to 'SSL' folder copy "server.key" "../ssl/server.key" copy "server.cert" "../ssl/server.cert" copy "server.csr" "../ssl/server.csr" copy "server.pem" "../ssl/server.pem" ECHO Development Server Key Created and Copied to SSL folder pause
Revision: 31291
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 2, 2010 11:04 by zonetrooperex
Initial Code
:: Generates a new server key file for a development server ECHO OFF TITLE Creating a Development Server Key ECHO Creating a Development Server Key... :: Generate server.key openssl genrsa -des3 -out server.key 1024 :: Generate server.csr and server.pem openssl req -config ../conf/openssl.cnf -new -out server.csr -keyout server.pem :: Regenerate server.key from created server.pem openssl rsa -in server.pem -out server.key :: Signs the key file and outputs server.cert openssl x509 -in server.csr -out server.cert -req -signkey server.key -days 365 :: Copy generated files to 'ssl' folder ECHO Copying generated files to 'SSL' folder copy "server.key" "../ssl/server.key" copy "server.cert" "../ssl/server.cert" copy "server.csr" "../ssl/server.csr" copy "server.pem" "../ssl/server.pem" ECHO Development Server Key Created and Copied to SSL folder pause
Initial URL
Initial Description
Creates a self-signed SSL Key for use on a Windows development server. Instructions: http://dpaste.com/237670/
Initial Title
Generate Apache Development Server SSL Key
Initial Tags
apache, Development
Initial Language
Apache