kkk
kkk

Reputation: 115

SSLPassPhraseDialog builtin is not supported on Win32 in ssl certificate

I've got the error AH02577: Init: SSLPassPhraseDialog builtin is not supported on Win32 (key file C:/xampp/apache/conf/ssl.key/server.key)

When I search, I need to use this command in openssl

openssl rsa -in file1.key -out file2.key

After that, I got another error.

unable to load Private Key 140596:error:0906D06C:PEM routines:PEM_read_bio:no start line:crypto\pem\pem_lib.c:686:Expecting: ANY PRIVATE KEY

I'm beginner for SSL certificate installation. Could you please help to solve ? Thanks.

Upvotes: 4

Views: 6324

Answers (1)

The answer can be found in the official apache documentation. https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslpassphrasedialog

It says that instead of the "builtin" option, you can specify the path to your own .exe file. All the .exe should do is print the passphrase to standard console output.

Like this c++ example (you can use any language):

#include <iostream>
int main()
{
    std::cout<< "PASSPHRASE";
    return 0;
}

Built your exe file. After that print SSLPassPhraseDialog "exec:/PATH_TO_EXE" instead of SSLPassPhraseDialog buildin at your Apache config file.

Upvotes: 1

Related Questions