Add param check code in PrepareMCertificateCallback.