fixed /generate_certificate for active activation key