Fixed create certificates