Hi All,
Here is the part of the code that was previously developed. The code
successfully extract a public key from some secure server, now I like to
know how to extract the exponent and modules of the public key
(rsa_public_key).



        EVP_PKEY *public_key = NULL;
      RSA *rsa_public_key = NULL;
      ...
      ...
      public_key = ENGINE_load_public_key(e1, file_nm_public,
UI_OpenSSL(), NULL);
      if (public_key == NULL)
      {
        ...
      exit (-1);
        }
      
      rsa_public_key =  EVP_PKEY_get1_RSA(public_key);

Many thanks in advance,
Bizhan
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to