Monday, 3 May 2021

set OPENSSL path in windows

openssl is a library, so no need to install, just set the path in enviorment variables

  • Download openssl from internet. you may find it here : https://sourceforge.net/projects/openssl/
  • Extract inside C:\Program Files\ folder
  • You will find project structure like this C:\Program Files\OpenSSL\bin
  • Set this path in environment variables. Advanced System Settings > Enviroment variables > System Variables > path
  • Run openssl command in command prompt. if you get "WARNING: can't open config file: C:/OpenSSL/openssl.cnf" error, run set OPENSSL_CONF=C:\Program Files\OpenSSL\bin\openssl.cnf
  • if still you are getting C:/OpenSSL/openssl.cnf error, use openssl.conf path while creating certificate / key , for example

    reference : http://irwinj.blogspot.com/2008/11/unable-to-load-config-info-from.html for example : openssl req -new -key my.key -config "C:\Program Files\...\openssl.cnf" -out my.csr

No comments:

Post a Comment