* Fixed loading certificates and key correctly.
* Added initialization of context.