I was trying to do some modifications to mongoose http server to use polarssl, to do that I tried to understand openssl and polarssl libraries, for that I wrote some example client/server programs, See https://github.com/CloudFundoo/SSL-TLS-clientserver, may be useful.
To compile this with libssl, first install openssl(or libssl) library, dev package and tools package.
Then sync our example source code and give “make libssl”, this will give both server and client executables.
Compiling with polarssl has some problems, first we need to compile the polarssl library since we don’t have polarssl packages for ubuntu.
Download polarssl source tarball and unzip to some folder, then issue following commands
“make all/make” will not create shared library, so we need to issue “make shared” for that. After creating shared library copy it to “/usr/lib”. Polarssl library installation is complete now.
Now issue “make polarssl” in our example directory, it will give both server and client executables.
Next step is creating certificate file, to generate CA, server and client certificates, follow below instructions
Subscribe via RSS