Add certificate code