LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   where does openssl expect the config file (https://www.linuxquestions.org/questions/linux-security-4/where-does-openssl-expect-the-config-file-351750/)

rblampain 08-10-2005 03:12 AM

where does openssl expect the config file
 
I've been following an "openssl HOWTO" specific to FC2. There is a short reference to a "configuration file" but no mention of where it is supposed to be located nor how it should be named.
This howto assumes openssl is installed in /opt/ but I found it in /usr/bin/ so I substituted all /opt/ by /usr/bin/ for the creation of the required directories and files.
A little further down this howto there is a line to be typed as follows:
OPENSSL_CONF=/usr/bin/LocalCA/LocalCA.cnf
which I thought was the configuration file, I then named the configuration file LocalCA.cnf and copied it into /usr/bin/LocalCA/ but I get a message
"unable to load Config info"
before being asked to :
"Enter PEM Pass phrase:"
it then crashes after another complaint concerning the config file.

Does anyone know where this config file is expected and how it should be named?

Thank you.

joelkeeble 08-11-2005 03:40 PM

/etc/ssl/openssl.cnf

I think this should answer your q's :)

rblampain 08-12-2005 07:37 AM

to joelkeeble:
I have no subdirectory ssl in /etc, do I have OpenSSL not configured?

TruckStuff 08-12-2005 08:19 AM

The conf file will depend on how you installed OpenSSL. If you installed via RPM, it will likely be in /usr/ssl or /usr/openssl. If you installed from the source code, it will likely be in {$PREFIX}/ssl

rblampain 08-12-2005 09:11 AM

This was installed with the distro (FC2).
I found the following:
/usr/share/ssl/openssl.cnf

It looks like I'll have to read the docs a lot more to find out what's going on.

Thank you all for your help.


All times are GMT -5. The time now is 01:34 AM.