And by "certificate" you mean private key (as used by sshd(8)'s Pubkey Authentication)?
If so, check
this thread and the sshd_config(5) Match directive.
Older versions of OpenSSH do not have Match, though. If that's the case for you, then share the OS / version you're using (along with your OpenSSH version).