The source project of this merge request has been removed.
Instead of command giving an API error when trying to create the certificate, don't try creating the certificate at all. This checks if the user is able to generate the certificate first and tells the user if they can't.