Discussion:
X509 problem
Amir Reda
2014-09-24 11:37:13 UTC
Permalink
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*
n***@public.gmane.org
2014-09-24 11:44:36 UTC
Permalink
it seems that function "CreateCertificate" is not defined in client.cc

Regards

----- Mail original -----
De: "Amir Reda" <amiralex32-***@public.gmane.org>
À: openssl-users-MCmKBN63+***@public.gmane.org
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 openssl-users-MCmKBN63+***@public.gmane.org
Automated List Manager majordomo-MCmKBN63+***@public.gmane.org
Amir Reda
2014-09-24 11:53:30 UTC
Permalink
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
Post by n***@public.gmane.org
it seems that function "CreateCertificate" is not defined in client.cc
Regards
----- Mail original -----
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
--
Warmest regards and best wishes for a good health,*urs sincerely *
*mero*
n***@public.gmane.org
2014-09-24 12:07:16 UTC
Permalink
my bad...

good luck anyway


----- Mail original -----
De: "Amir Reda" <amiralex32-***@public.gmane.org>
À: openssl-users-MCmKBN63+***@public.gmane.org
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, < nicolas.kox-***@public.gmane.org > wrote:


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

Regards

----- Mail original -----
De: "Amir Reda" < amiralex32-***@public.gmane.org >
À: openssl-users-MCmKBN63+***@public.gmane.org
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 openssl-users-MCmKBN63+***@public.gmane.org
Automated List Manager majordomo-MCmKBN63+***@public.gmane.org
--
Warmest regards and best wishes for a good health , urs sincerely
mero
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users-MCmKBN63+***@public.gmane.org
Automated List Manager majordomo-MCmKBN63+***@public.gmane.org
n***@public.gmane.org
2014-09-24 12:18:23 UTC
Permalink
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" <nicolas.kox-***@public.gmane.org>
À: openssl-users-MCmKBN63+***@public.gmane.org
Envoyé: Mercredi 24 Septembre 2014 14:07:16
Objet: Re: X509 problem

my bad...

good luck anyway


----- Mail original -----
De: "Amir Reda" <amiralex32-***@public.gmane.org>
À: openssl-users-MCmKBN63+***@public.gmane.org
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, < nicolas.kox-***@public.gmane.org > wrote:


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

Regards

----- Mail original -----
De: "Amir Reda" < amiralex32-***@public.gmane.org >
À: openssl-users-MCmKBN63+***@public.gmane.org
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 openssl-users-MCmKBN63+***@public.gmane.org
Automated List Manager majordomo-MCmKBN63+***@public.gmane.org
--
Warmest regards and best wishes for a good health , urs sincerely
mero
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users-MCmKBN63+***@public.gmane.org
Automated List Manager majordomo-MCmKBN63+***@public.gmane.org
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users-MCmKBN63+***@public.gmane.org
Automated List Manager majordomo-MCmKBN63+***@public.gmane.org
Loading...