I don't want to make a mistake again, but when you create you create your 
client you still need to set the pointer m_ca to server 


 Client :: Client(Server* srv)
 {
          m_myCertReq = X509_REQ_new();
          m_myCert = X509_new();
          m_name = X509_NAME_new();
          m_rsa_keyPair = RSA_new();
          m_puk  = EVP_PKEY_new();

          m_ca = srv; /* <- */

          GenerateRSAKeyPair();
          SetPublicKey();
 }



int main()
{

    Server servertest;
    Client clientest (&servertest);


    clientest.SetCert(clientest.MakeSignedCertReq(1,2,90));
    return 0;
}


----- Mail original -----
De: "nicolas kox" <[email protected]>
À: [email protected]
Envoyé: Mercredi 24 Septembre 2014 14:07:16
Objet: Re: X509 problem

my bad...

good luck anyway


----- Mail original -----
De: "Amir Reda" <[email protected]>
À: [email protected]
Envoyé: Mercredi 24 Septembre 2014 13:53:30
Objet: Re: X509 problem



no sir it is defined i have a pointer from the server as an attribute in the 
client side if it isn't defined it will give a syntax error and i don't have a 
syntax error 
thx for reply 



On Wed, Sep 24, 2014 at 2:44 PM, < [email protected] > wrote: 


it seems that function "CreateCertificate" is not defined in client.cc 

Regards 

----- Mail original ----- 
De: "Amir Reda" < [email protected] > 
À: [email protected] 
Envoyé: Mercredi 24 Septembre 2014 13:37:13 
Objet: X509 problem 





dear all 
i have problem in my code it is a client send a certificate request to server 
which reply by the X509 certificate my problem is i have put in the client side 
a function called 
void 
Client::SetCert(X509_REQ *req) 


that set the certificate for the client also write it in a pem file so i can 
make sure it has been created 

i run the project but nothing created and no syntax error 

i attached the code please i need help thx 

i don't know what to do 



Warmest regards and best wishes for a good health , urs sincerely 
mero 
______________________________________________________________________ 
OpenSSL Project http://www.openssl.org 
User Support Mailing List [email protected] 
Automated List Manager [email protected] 



-- 


Warmest regards and best wishes for a good health , urs sincerely 
mero 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to