About the author

Related Articles

7 Comments

  1. 1
    DavAlPi@email.null'

    DavAlPi

    The solution is running this command:

    set OPENSSL_CONF=C:OpenSSL-Win32binopenssl.cfg   
    

    or

    set OPENSSL_CONF=[path-to-OpenSSL-install-dir]binopenssl.cfg
    

    in the command prompt before using openssl command.

    Let openssl know for sure where to find its .cfg file.

    Alternatively you could set the same variable OPENSSL_CONF in the Windows environment variables.

    NOTE: This can happen when using the OpenSSL binary distribution from Shining Light Productions (a compiled + installer version of the official OpenSSL that is free to download & use). This distribution is “semi-officially” linked from OpenSSL’s site as a “service primarily for operating systems where there are no pre-compiled OpenSSL packages”.

    Reply
  2. 2
    komu_Mkeya@email.null'

    komu_Mkeya

    I’ve SSL on Apache2.4.4 and executing this code at first, did the trick:

    set OPENSSL_CONF=C:wampbinapacheApache2.4.4confopenssl.cnf

    then execute the rest codes..

    Reply
  3. 3
    autremoi@email.null'

    autremoi

    Simply install Win64 OpenSSL v1.0.2a or Win32 OpenSSL v1.0.2a, you can download these from http://slproweb.com/products/Win32OpenSSL.html. Works out of the box, no configuration needed.

    Reply
  4. 4
    Dev@email.null'

    Dev

    Not sure what is the difference between .cfg & .cnf
    In my server I couldn’t find .cfg or .cnf
    I had created a new file for the same and placed it in the following folder /usr/local/ssl/bin

    executed the

    .openssl genrsa -des3 -out <key name>.key 2048 
    

    went great..

    Reply
  5. 5
    Steven

    Steven Penny

    /usr/local/ssl/openssl.cnf

    A path like this means the program has been compiled with either Cygwin or MSYS. If you must use this openssl then you will need an interpreter that understands those paths, like Bash, which is provided by Cygwin or MSYS.

    Another option would be to download or compile a Windows Native version of openssl. Using that the program would instead require a path like

    C:UsersStevensslopenssl.cnf
    

    which would be better suited for the Command Prompt.

    Reply
  6. 6
    FlyBy@email.null'

    FlyBy

    In my case I used the binaries from Shining Light and the environment variables were already updated. But still had the issue until I ran a command window with elevated privileges.

    When you open the CMD window be sure to run it as Administrator. (Right click the Command Prompt in Start menu and choose “Run as administrator”)

    I think it can’t read the files due to User Account Control.

    Reply
  7. 7
    T.Todua@email.null'

    T.Todua

    SOLUTION!

    just set -config parameter location correctly, i.e :

    openssl ....................  -config C:binapacheapache2.4.9confopenssl.cnf
    
    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2017 SolutionMmyself.com