Hello,

I wonder if somebody can enlighten me:
At Page 283  of "Network Security with OpenSSL" book there is example
of generation of certificate request.

And there is a code sequence seems to be strange:

  We read a PRIVATE key from a file using PEM_READ_PrivateKey

  and than we add it as a PUBLIC Key  to the request

  X509_REQ_Set_pubkey
  
  and later yet we use the same private key to sign the request...

  
 I would think that we need to read a PUBLIC key from somewhere and use it as
public key for the requset

  


Tanks
Vadim
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to