Private method for getting a PKCS#11 certificate