certificate fully working, unit testing, some changes in server handlers