Fix the certificateSign method.