Added X.509 cerfificate and used it testwise in code