Код: Выделить всё
Syntax error on line 121 of /usr/local/etc/apache22/extra/httpd-ssl.conf:
sslcertificatefile : file '/usr/local/etc/apache22/server.crt' does not exist or is empty
Модератор: terminus
Код: Выделить всё
Syntax error on line 121 of /usr/local/etc/apache22/extra/httpd-ssl.conf:
sslcertificatefile : file '/usr/local/etc/apache22/server.crt' does not exist or is empty
Код: Выделить всё
# cat gen.sh
#!/bin/sh
openssl genrsa -des3 -rand /dev/random -out server.key 1024
openssl rsa -in server.key -out server.pem
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey \
server.key -out server.crt
# ./gen.sh
2048 semi-random bytes loaded
Generating RSA private key, 1024 bit long modulus
...............++++++
.....++++++
e is 65537 (0x10001)
Enter pass phrase for server.key:
Verifying - Enter pass phrase for server.key:
Enter pass phrase for server.key:
writing RSA key
Enter pass phrase for server.key:
You are about to be asked to enter information that will be
incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished
Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:RU
State or Province Name (full name) [Some-State]:Russia
Locality Name (eg, city) []:Moscow
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Fr33man inc
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:ssl.fr33man.ru
Email Address []:fr33man@fr33man.ru
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Signature ok
subject=/C=RU/ST=Russia/L=Moscow/O=Fr33man inc/CN=ssl.fr33man.ru/
emailAddress=fr33man@fr33man.ru
Getting Private key
Enter pass phrase for server.key:
demondem10 писал(а):Сертификат был создан по примерус сайта Лисяры все прошло без проблем сертификат не пустойКод: Выделить всё
# cat gen.sh #!/bin/sh openssl genrsa -des3 -rand /dev/random -out server.key 1024 openssl rsa -in server.key -out server.pem openssl req -new -key server.key -out server.csr openssl x509 -req -days 365 -in server.csr -signkey \ server.key -out server.crt # ./gen.sh 2048 semi-random bytes loaded Generating RSA private key, 1024 bit long modulus ...............++++++ .....++++++ e is 65537 (0x10001) Enter pass phrase for server.key: Verifying - Enter pass phrase for server.key: Enter pass phrase for server.key: writing RSA key Enter pass phrase for server.key: You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:RU State or Province Name (full name) [Some-State]:Russia Locality Name (eg, city) []:Moscow Organization Name (eg, company) [Internet Widgits Pty Ltd]:Fr33man inc Organizational Unit Name (eg, section) []: Common Name (eg, YOUR name) []:ssl.fr33man.ru Email Address []:fr33man@fr33man.ru Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []: Signature ok subject=/C=RU/ST=Russia/L=Moscow/O=Fr33man inc/CN=ssl.fr33man.ru/ emailAddress=fr33man@fr33man.ru Getting Private key Enter pass phrase for server.key:
кто знает в чем грабли?
И к теме о virtual hoste он сам создается а то у меня их нет и не было и конфигов отдельных для vir тоже не делал! это ни как не может быть связано?
Я не ругаюсьdemondem10 писал(а):Это только пример взятый с сайта, я делал со своими параметрами, и прошу вас не ругаться, а обьяснить в чем может быть проблема
все мы когдато начинали с малого!
Код: Выделить всё
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog exec:/usr/local/etc/apache22/echo
SSLSessionCache shmcb:/var/run/ssl_scache(512000)
SSLSessionCacheTimeout 300
SSLMutex file:/var/run/ssl_mutex
<VirtualHost *:443>
# General setup for the virtual host
DocumentRoot "/usr/local/www/apache22/data/admin/"
ServerName ssl.dialin.kz:443
ServerAdmin admin@dialin.kz
ErrorLog /var/log/httpd-error.log
TransferLog /var/log/httpd-access.log
Alias /admin/ "/usr/local/www/apache22/data/secretarea/"
<Directory "/usr/local/www/apache22/data/secretarea">
Options ALL
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>
<Directory "/usr/local/www/apache22/data/admin/">
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/etc/apache22/server.crt
SSLCertificateKeyFile /usr/local/etc/apache22/server.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/usr/local/www/apache22/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /var/log/httpd-ssl_request.log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
У меня с твоим конфигом без этой строчкиdemondem10 писал(а):вот конфиг httpd_ssl.confКод: Выделить всё
Listen 443 AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl SSLPassPhraseDialog exec:/usr/local/etc/apache22/echo SSLSessionCache shmcb:/var/run/ssl_scache(512000) SSLSessionCacheTimeout 300 SSLMutex file:/var/run/ssl_mutex <VirtualHost *:443> # General setup for the virtual host DocumentRoot "/usr/local/www/apache22/data/admin/" ServerName ssl.dialin.kz:443 ServerAdmin admin@dialin.kz ErrorLog /var/log/httpd-error.log TransferLog /var/log/httpd-access.log Alias /admin/ "/usr/local/www/apache22/data/secretarea/" <Directory "/usr/local/www/apache22/data/secretarea"> Options ALL AllowOverride All Order Deny,Allow Allow from all </Directory> <Directory "/usr/local/www/apache22/data/admin/"> Options Indexes FollowSymLinks AllowOverride None Order Allow,deny Allow from all </Directory> SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile /usr/local/etc/apache22/server.crt SSLCertificateKeyFile /usr/local/etc/apache22/server.key <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory "/usr/local/www/apache22/cgi-bin"> SSLOptions +StdEnvVars </Directory> BrowserMatch ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog /var/log/httpd-ssl_request.log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" </VirtualHost>
вот конфиг
Код: Выделить всё
SSLPassPhraseDialog exec:/usr/local/etc/apache22/echo
Код: Выделить всё
accf_httpd_load="YES"
Код: Выделить всё
AuthName ProtectedZone
AuthType Basic
AuthUserFile /usr/local/www/apache22/data/admin/.htpasswd
require valid-user
Код: Выделить всё
Thu Aug 09 15:46:22 2007] [error] [client 192.168.0.10] client denied by server configuration: /usr/local/www/apache22/data/admin/.htaccess
[Thu Aug 09 15:46:22 2007] [error] [client 192.168.0.10] client denied by server configuration: /usr/local/www/apache22/data/admin/.htpasswd
Код: Выделить всё
<VirtualHost 111,222,333,444:443>
# General setup for the virtual host
DocumentRoot "/usr/local/www/apache22/data/admin/"
ServerName ssl.mamba.kz:443
ServerAdmin admin@mamba.kz
ErrorLog /var/log/httpd-error.log
TransferLog /var/log/httpd-access.log
Alias /admin/ "/usr/local/www/apache22/data/secretarea/"
<Directory "/usr/local/www/apache22/data/secretarea">
Options ALL
AllowOverride ALL
Order Deny,Allow
Allow from all
</Directory>
<Directory "/usr/local/www/apache22/data/admin/">
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
Код: Выделить всё
<VirtualHost 111,222,333,444:443>