On Thu, Jun 11, 2015 at 06:01:26AM +0530, Nayna Jain wrote: > I have similar concern for private key. > If I have a pem file with private key in that, how do I check if that is > RSA/DSA ? In almost all cases don't check. Just load and use the key as a generic EVP_PKEY. -- Viktor.