Updated the generate_certificate according to the Code Flame