networks:apache:ssl
Розбіжності
Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
Наступна ревізія | Попередня ревізія | ||
networks:apache:ssl [2014/01/07 19:52] – создано olexande bilovol | networks:apache:ssl [2018/05/07 08:48] (поточний) – olexande bilovol | ||
---|---|---|---|
Рядок 2: | Рядок 2: | ||
1. создадим сертефикаты: | 1. создадим сертефикаты: | ||
- | #openssl genrsa -des3 -rand /dev/random -out server.key 2048 // результатом будет один файл - server.key | + | < |
#openssl rsa -in server.key -out newserver.key | #openssl rsa -in server.key -out newserver.key | ||
Рядок 11: | Рядок 11: | ||
#openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt | #openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt | ||
- | # cp server.* / | + | # cp server.* / |
2. добавляем в httpd.conf строку: | 2. добавляем в httpd.conf строку: | ||
- | | + | < |
3. Создаем файл / | 3. Создаем файл / | ||
Это sh-скрипт, | Это sh-скрипт, | ||
- | # cat / | + | < |
# | # | ||
- | / | + | / |
- | + | < | |
# ls -la / | # ls -la / | ||
- | -rwx------ | + | -rwx------ |
Необходим для того, чтобы при перезагрузке apache не спрашивал парольную фразу. | Необходим для того, чтобы при перезагрузке apache не спрашивал парольную фразу. | ||
Рядок 34: | Рядок 34: | ||
В результате правильной настройки должны получить подтверждающее сообщение в лог-файле. | В результате правильной настройки должны получить подтверждающее сообщение в лог-файле. | ||
# tail / | # tail / | ||
- | < | + | < |
+ | PHP/5.5.3 mod_perl/ | ||
+ | |||
+ | < | ||
+ | Generating Self-Signed SSL Certificates. | ||
+ | |||
+ | %openssl genrsa -rand random.dat -out server.key 1024 | ||
+ | %openssl req -new -key server.key -out server.csr | ||
+ | %cp server.key server.key.org | ||
+ | %openssl rsa -in server.key.org -out server.key | ||
+ | %openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt | ||
+ | Then move these files to your Apache server' | ||
+ | |||
+ | SSLCertificateFile "/ | ||
+ | SSLCertificateKeyFile "/ | ||
+ | Generating the private key.. | ||
+ | |||
+ | %openssl genrsa -out server.key 1024 | ||
+ | |||
+ | In the first step, we generate the private key. private key residing on the server and the public key going out with each connection to the server and encrypting data sent back to the server. The first argument passed to the openssl program tells openssl that we want to generate an RSA key (genrsa), which is an encryption algorithm that all major browsers support.You may, if you wish, specify an argument telling openssl what to use as the source of randomness. The -rand flag will accept one or more filenames (for example: | ||
+ | |||
+ | Литература: | ||
+ | |||
+ | ISBN: 0-7645-4821-2 Mohammed J.Kabir " | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | ===== Перевірка сертифікату ===== | ||
+ | |||
+ | [[https:// |
networks/apache/ssl.1389124321.txt.gz · Востаннє змінено: 2014/01/07 19:52 (зовнішнє редагування)