Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which directory is the openssldir?

When compiling OpenSSL you can add 2 options (from INSTALL in the OpenSSL sources):

 Configuration Options  
 ---------------------

 There are several options to ./config (or ./Configure) to customize
 the build:

  --prefix=DIR  Install in DIR/bin, DIR/lib, DIR/include/openssl.
            Configuration files used by OpenSSL will be in DIR/ssl
                or the directory specified by --openssldir.

  --openssldir=DIR Directory for OpenSSL files. If no prefix is specified,
                the library files and binaries are also installed there.

When compiling other things that rely on OpenSSL or can be added in, an option will be available e.g. for tinc the --with-openssl is available. Should this point to the OpenSSL compilation option given to prefix or openssldir?

Note: I'm not compiling tinc, it's just the first thing I found with a clear example.

like image 598
ian Avatar asked Jul 25 '14 15:07

ian


1 Answers

You could also run this command to identify in which directory it's installed to.

openssl version -d
like image 78
PatricNox Avatar answered Nov 06 '22 12:11

PatricNox