Fixed problem with certificate