Small bugfix for SNI certificates. Added test for certificates (it fails: there's still something not right with generated certificate, like our custom data was ignored by PEM module).