read public key algorithm of certificate