Не генерируется сертификат на ХАМРР Windows 7

Discussion in 'Windows' started by blackbox, 13 Mar 2015.

  1. blackbox

    blackbox Elder - Старейшина

    Joined:
    31 Dec 2011
    Messages:
    362
    Likes Received:
    62
    Reputations:
    11
    Здравствуйте, столкнулся со странной проблемой.

    Вот у меня есть виртуалхост:

    Code:
     <VirtualHost test.com.ru:443>
        SSLEngine On
        SSLCertificateFile C:\xampp\apache\conf\ssl.crt
        SSLCertificateKeyFile C:\xampp\apache\conf\ssl.keyserver.key
            ServerAdmin webmaster@test.com.ru
            DocumentRoot "C:\xampp\htdocs\redir"
            ServerName test.com.ru
            ErrorLog "logs/test.com.ru-error.log"
            CustomLog "logs/test.com.ru-access.log" common
         
            RewriteEngine on
            RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
            RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
            RewriteRule ^(.*)$ /index.php?param=$1 [L]
        </VirtualHost>
    Для него я хотел сгенерить сертификат, воспользовался скриптом makecert.bat из ХАМРР, но в конце получил вот что:

    Code:
    unable to load Private Key
        1464:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:.\
        crypto\evp\evp_enc.c:330:
        1464:error:0906A065:PEM routines:PEM_do_header:bad decrypt:.\crypto\pem\pem_lib.
        c:428:
        Loading 'screen' into random state - done
        Signature ok
        subject=/C=RU/ST=dada/L=dada/O=dada/OU=dad/CN=t.mail.ru/emailAddress=m@mail.ru
        Getting Private key
        Error opening Private key server.key
        4148:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\
        bss_file.c:356:fopen('server.key','rb')
        4148:error:20074002:BIO routines:FILE_CTRL:system lib:.\crypto\bio\bss_file.c:35
        8:
        unable to load Private key
        unable to write 'random state'
    

    Теперь папка с ключом пустая (ssl.key) а сертификат длиной в ноль байт. Что теперь с этим делать я не знаю. Апач не стартует, в логе ничего нет, есть старые записи


    Code:
        [Thu Mar 12 17:38:16.835437 2015] [mpm_winnt:notice] [pid 5976:tid 488] AH00418: Parent: Created child process 5940
        AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::7980:95d1:24c3:622d. Set the 'ServerName' directive globally to suppress this message
        [Thu Mar 12 17:38:17.869496 2015] [ssl:warn] [pid 5940:tid 500] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
        AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::7980:95d1:24c3:622d. Set the 'ServerName' directive globally to suppress this message
        [Thu Mar 12 17:38:18.197515 2015] [ssl:warn] [pid 5940:tid 500] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
        [Thu Mar 12 17:38:18.237517 2015] [mpm_winnt:notice] [pid 5940:tid 500] AH00354: Child: Starting 150 worker threads.
    Но во время неудачного старта в лог ничего не пишется. Подскажет кто как решить?
     
  2. ZodiaX

    ZodiaX Reservists Of Antichat

    Joined:
    7 May 2009
    Messages:
    533
    Likes Received:
    308
    Reputations:
    51
    Сделай в openssl новый самоподписанный серт и подложи его.