how can I find out, where my openssl installed is looking for installed certificates (trusted)? it is sometimes /etc/ssl/cert but I have here a new system and it is not work
This C snippet, compiled against OpenSSL, will tell you:
#include #include #include int main() { const char *dir; dir = getenv(X509_get_default_cert_dir_env()); if (!dir) dir = X509_get_default_cert_dir(); puts(dir); return 0; }