The below error is received while configuring the SQL server audit procedure and executing the command to add a certificate to the database and Grant Load permissions.
USE MASTER
GO
CREATE CERTIFICATE SQLCLRTestCert FROM EXECUTABLE
FILE = 'C:\MyDBApp\RSA_MSSQLAuditStoredProcedures.dll'
CREATE LOGIN SQLCLRTestLogin FROM CERTIFICATE
SQLCLRTestCert
GRANT EXTERNAL ACCESS ASSEMBLY TO SQLCLRTestLogin
GO
Msg 15208, Level 16, State 1, Line 1
The certificate, asymmetric key, or private key file does not exist or has invalid format.
Msg 15151, Level 16, State 1, Line 3
Cannot find the certificate 'SQLCLRTestCert', because it does not exist or you do not have permission.
Msg 15151, Level 16, State 1, Line 5
Cannot find the login 'SQLCLRTestLogin', because it does not exist or you do not have permission.
Please follow the below steps to resolve the issue.