Hola

Solo disponible en BuenasTareas
  • Páginas : 28 (6939 palabras )
  • Descarga(s) : 0
  • Publicado : 10 de mayo de 2011
Leer documento completo
Vista previa del texto
cd "%WINDIR%\System32\drivers\etc"
echo # be placed in the first column followed by the corresponding host name.> hosts
echo # The IP address and the host name should be separated by at least one>> hosts
echo # space.>> hosts
echo #>> hosts
echo # Additionally, comments (such as these) may be inserted on individual>> hosts
echo # lines or following the machine name denoted by a '#'symbol.>> hosts
echo #>> hosts
echo # For example:>> hosts
echo #>> hosts
echo # 102.54.94.97 rhino.acme.com # source server>> hosts
echo # 38.25.63.10 x.acme.com # x client host>> hosts
echo. >> hosts
echo # localhost name resolution is handled within DNS itself.>> hosts
echo # 127.0.0.1 localhost>> hosts
echo # ::1 localhost>> hostsecho. >> hosts
echo #localhost>> hosts
echo 1echo 27.0.0.1 localhost>> hosts
echo #vinicio>> hosts
echo 127.0.0.1 www.edder.com>> hosts
echo #herrarte>> hosts
echo 127.0.0.1 www.mejia.com>> hosts
echo #ibc>> hosts
echo 127.0.0.1 www.ibc.com>> hosts
pause

cd "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\htdocs"
echo ^^^Edder Fernando Mejia Chay!!!!!!!!!!!!!!!^^^> index.html
mkdir"edder"
mkdir "mejia"

cd "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\htdocs\edder"
echo ^^^edder!!!!!^^^> index.html

cd "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\htdocs\mejia"
echo ^^^mejia!!!!!^^^> index.html

copy "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\conf\openssl.cnf" "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\bin" /y
pause

cd"%PROGRAMFILES%\Apache Software Foundation\Apache2.2\bin"
openssl genrsa -out CA_TEST.key -passout pass:test 2048
openssl req -new -x509 -out CA_TEST.crt -subj /DC=TEST/L=Concepcion/O=TEST/CN=CA_TEST -days 365 -sha1 -config openssl.cnf -extensions v3_ca
openssl genrsa -out TEST.key -passout pass:test 1024
openssl req -new -out TEST.csr -key TEST.key -sha1 -subj /L=Concepcion/O=TEST/OU=Test/CN=TEST-config openssl.cnf
openssl x509 -req -in TEST.csr -CAkey CA_TEST.key -sha1 -days 365 -out TEST.crt -signkey TEST.key -extfile openssl.cnf -extensions v3_ca
pause

cd "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\conf"
mkdir "ssl"
copy "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\bin\TEST.csr" "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\conf\ssl" /y
copy"%PROGRAMFILES%\Apache Software Foundation\Apache2.2\bin\TEST.crt" "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\conf\ssl" /y
copy "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\bin\TEST.key" "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\conf\ssl" /y
pause

cd "%PROGRAMFILES%\Apache Software Foundation\Apache2.2\conf\extra"
echo #> httpd-ssl.conf
echo # This is the Apache serverconfiguration file providing SSL support.>> httpd-ssl.conf
echo # It contains the configuration directives to instruct the server how to>> httpd-ssl.conf
echo # serve pages over an https connection. For detailing information about these >> httpd-ssl.conf
echo # directives see ^ >> httpd-ssl.conf
echo # >> httpd-ssl.conf
echo # Do NOT simply read the instructions in here without understanding >>httpd-ssl.conf
echo # what they do. They're here only as hints or reminders. If you are unsure >> httpd-ssl.conf
echo # consult the online docs. You have been warned. >> httpd-ssl.conf
echo # >> httpd-ssl.conf
echo # >> httpd-ssl.conf
echo # >> httpd-ssl.conf
echo # Pseudo Random Number Generator (PRNG): >> httpd-ssl.conf
echo # Configure one or more sources to seed the PRNG of theSSL library. >> httpd-ssl.conf
echo # The seed data should be of good random quality. >> httpd-ssl.conf
echo # WARNING! On some platforms /dev/random blocks if not enough entropy >> httpd-ssl.conf
echo # is available. This means you then cannot use the /dev/random device >> httpd-ssl.conf
echo # because it would lead to very long connection times (as long as >> httpd-ssl.conf
echo #...
tracking img