Skip to content

Tag: openssl

OpenSSL and Trusted System Certifcates

So I already know how to specify locations for trusted certificates using SSL_CTX_load_verify_locations(). Now the documentation says the following: SSL_CTX_load_verify_locations() specifies the locations for ctx, at which CA certificates for verification purposes are located. The certificates available via C…

Script to generate MD5 hash with openssl

I’m trying to generate some MD5 hashes with openssl for use with chpasswd Ex. CSV file: Script I created: However, if I take any MD5 generated from this script and try to use it with chpasswd it does not work. This password will fail If I try to do this without the script by hand it works: Answer Your C…

How can I split a CA certificate bundle into separate files?

I’m working with OpenSSL and need a sane default list of CAs. I’m using Mozilla’s list of trusted CAs, as bundled by cURL. However, I need to split this bundle of CA certs, because the OpenSSL documentation says: If CApath is not NULL, it points to a directory containing CA certificates in P…

How to send a string to server using s_client

How to use s_client of openssl to send a short string to the server? I have read the s_client manual but didn’t find any usable flags. Or is there any other ways to achieve this? Answer Does anyone know how to use s_client of openssl to send a short string to the server? You can echo it in. Below, I

Kernel Modul and SSL

at the moment I am working on the kernel module of ccn-lite (http://www.ccn-lite.net/). For that I need some security functionality (sha1 and public/private key authentificaton). For the user-space I use the openssl library, but I cannot use a library in the kernel module. It is also hard to pick the function…