Користувальницькі налаштування

Налаштування сайту


networks:apache:ssl

Розбіжності

Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.

Посилання на цей список змін

Порівняння попередніх версійПопередня ревізія
Наступна ревізія
Попередня ревізія
networks:apache:ssl [2014/01/07 19:53] olexande bilovolnetworks:apache:ssl [2018/05/07 08:48] (поточний) olexande bilovol
Рядок 23: Рядок 23:
      /bin/echo   UnAiWosk+AyRattIvRoshEtt4JenBorrEv3MawbEjifEttujEyRio</file>      /bin/echo   UnAiWosk+AyRattIvRoshEtt4JenBorrEv3MawbEjifEttujEyRio</file>
  
- </file>+<file>
 # ls -la /usr/local/etc/apache22/echo # ls -la /usr/local/etc/apache22/echo
 -rwx------  1 root  wheel  27 Feb 12 09:54 /usr/local/etc/apache22/echo</file> -rwx------  1 root  wheel  27 Feb 12 09:54 /usr/local/etc/apache22/echo</file>
Рядок 34: Рядок 34:
 В результате правильной настройки должны получить подтверждающее сообщение в лог-файле. В результате правильной настройки должны получить подтверждающее сообщение в лог-файле.
 # tail  /usr/site/logs/httpd-error.log # tail  /usr/site/logs/httpd-error.log
-<file>[Thu Sep 12 01:01:53 2013] [notice] Apache/2.2.25 (FreeBSD) DAV/2 mod_ssl/2.2.25 OpenSSL/1.0.1e PHP/5.5.3 mod_perl/2.0.8 Perl/v5.14.4 configured -- resuming normal operations</file>+<file>[Thu Sep 12 01:01:53 2013] [notice] Apache/2.2.25 (FreeBSD) DAV/2 mod_ssl/2.2.25 OpenSSL/1.0.1e  
 +PHP/5.5.3 mod_perl/2.0.8 Perl/v5.14.4 configured -- resuming normal operations</file> 
 + 
 +<file>Securing Apache with SSL 
 +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's configuration directory, such as /etc/ssl/apache22/, and then add the following lines in your httpd.conf configuration file: 
 + 
 +SSLCertificateFile "/etc/ssl/apache22/server.crt" 
 +SSLCertificateKeyFile "/etc/ssl/apache22/server.key" 
 +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:-rand file1:file2:file3), which will be used as a key for the random number generator. If no -rand argument is provided, OpenSSL will attempt to use /dev/urandom by default if that exists, and it will try /dev/random if /dev/urandom does not exist. It is important to have a good source of randomness in order for the encryption to be secure. An argument of"1024" is specified, which tells openssl how many bytes of randomness to use in generating the key. 
 + 
 +Литература: 
 + 
 +    ISBN: 0-7645-4821-2 Mohammed J.Kabir "Apache Server 2 Bible" </file> 
 +     
 +[[https://secure.instantssl.com/products/SSLIdASignup1a|Free SSL Certificate 90 days ]] 
 + 
 +[[http://habrahabr.ru/post/249529/|Бесплатные SSL-сертификаты на 2 года с поддержкой до 100 доменов]] 
 + 
 +[[http://habrahabr.ru/post/244037/|SSL-сертификаты: всем, каждому, и пусть никто не уйдёт обиженным]] 
 + 
 +===== Перевірка сертифікату ===== 
 + 
 +[[https://www.ssllabs.com/ssltest/analyze.html?d=kyivstar.ua]] 
networks/apache/ssl.1389124395.txt.gz · Востаннє змінено: 2014/01/07 19:53 (зовнішнє редагування)

Якщо не вказано інше, вміст цієї Вікі підпадає під дію такої ліцензії: CC Attribution 4.0 International
CC Attribution 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki