Fixed get certificate