Rename function name, valid certificate
Added certificate validation
FS-29 fixed review issues