netopeer2 icon indicating copy to clipboard operation
netopeer2 copied to clipboard

Query on netopeer2 dependency for c_reshash

Open meghna-doshi opened this issue 3 years ago • 3 comments

Hi, We took latest code from devel branch of netopeer2 on May 12th 2022 and found one new dependency added in cli/CMakeLists.txt

find_program(C_REHASH c_rehash)
    if(NOT C_REHASH)
        message(FATAL_ERROR "c_rehash Perl OpenSSL script not found!")
    endif()

What is this dependency for and what if we comment out this part, does it create any issue?

meghna-doshi avatar May 12 '22 19:05 meghna-doshi

Its is required for OpenSSL to read trusted CA certificates. So, if you do not use TLS in CLI, you do not need it, otherwise you most definitely do.

michalvasko avatar May 13 '22 06:05 michalvasko

Hi Michal, We already have openssl installed on the server, how to get this c_rehash utility?

meghna-doshi avatar May 20 '22 04:05 meghna-doshi

It depends on the distribution you are on but it will almost certainly be part of a standard package. If it is not in the openssl package, it can be openssl-perl, for example.

michalvasko avatar May 20 '22 05:05 michalvasko