This class stably check certificates of imaps servers.
Now I want to implement certificatestuff for ldaps.
config file with nice explanation of config values
whole project with test suit. everything is working and should be tested.