Improved handling of config file
Store OpenSSL version used to generate certificate
Code cleanup