Hi, Paulo

Thank you  for your fast response.  and with respect  to your question this is the situactón:

We  buying the certificate to the CA local in Colombia, they send us the certificate for install in IIS for our use the pfx and the crl.  These certificate is which i try apply for sign the pdf.

Verifing the certificate in the IIS about certificate he says what the public key is RSA (1024 bytes). i  think that this fact implied a public key in the certificate. if i export the pfx with the private key and stronger protection in a format pkcs12 (pfx), the file results must have the public and private keys included.

if i export the file with these caracteristics or if i try load the original file pfx emited by the CA i obtain the same result. in the same point of  source code.

Exists any way of determine exactly if the certificate have the public key for verify your point of view? How i can proceed?

Thanks  for your  guide.


Cordially

Ing. Camilo Cubillos Rodriguez
[EMAIL PROTECTED]

 


From: "Paulo Soares" <[EMAIL PROTECTED]>
Reply-To: Post all your questions about iText here <[email protected]>
To: "Post all your questions about iText here" <[email protected]>
Subject: Re: [iText-questions] Trouble Load certificate v3 (PFX) inaX509Certificate Entry
Date: Tue, 14 Nov 2006 16:55:47 -0000
>Are you sure you have a public key there?
>
>Paulo
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Camilo Cubillos
> > Sent: Tuesday, November 14, 2006 4:35 PM
> > To: [email protected]
> > Subject: [iText-questions] Trouble Load certificate v3 (PFX)
> > in aX509Certificate Entry
> >
> >
> > Hi, good day to all
> >
> > I have a problem loading a file pfx with a certificate v3
> > with itextsharp.
> > The problem is what when i try obtain the Certificate Entry
> > for the method
> > getCertificateChain (alias) the object is returning a null
> > value. This is my
> > code:
> >
> > string alias = null;
> > PKCS12Store pk12;
> >
> > //First we'll read the certificate file
> > pk12 = new PKCS12Store(new FileStream(this.Path,
> > FileMode.Open, FileAccess.Read), this.password.ToCharArray());
> >
> > //then Iterate throught certificate entries
> > to find the
> > private key entry
> > IEnumerator i = pk12.aliases();
> > while (i.MoveNext())
> > {
> > alias = ((string)i.Current);
> > if (pk12.isKeyEntry(alias))
> > break;
> > }
> > this.akp = pk12.getKey(alias).getKey();
> > X509CertificateEntry[] ce =
> > pk12.getCertificateChain(alias);
> >
> > this.chain = new X509Certificate[ce.Length];
> > for (int k = 0; k < ce.Length; ++k)
> > chain[k] = ce[k].getCertificate() ;
> >
> > The file is loadesd in the store pk12, he is validated in
> > the key entry and
> > the assymetric key parameter is loaded, , but, at the momento
> > to obtain the
> > corresponding x509CertificateEntry in the ce objec ce this
> > value is null.
> >
> > The exception what shows is the follow:
> >
> > "System.NullReferenceException: Object reference not set to
> > an instance of
> > an object.\r\n at iTextSharpSign.Cert.processCert()\r\n at
> > iTextSharpSign.Cert..ctor(String cpath, String cpassword)\r\n at
> > iTextSharpSign.Form1.button1_Click(Object sender, EventArgs e)"
> >
> > if anyone can help me with to find the answer to this
> > problem, thanks.
> > --
> > View this message in context:
> > http://www.nabble.com/Trouble-Load-certificate-v3-%28PFX%29-in
> > -a--X509Certificate-Entry-tf2630582.html#a7341098
> > Sent from the iText - General mailing list archive at Nabble.com.
> >
> >
> > --------------------------------------------------------------
> > -----------
> > Using Tomcat but need to do more? Need to support web
> > services, security?
> > Get stuff done quickly with pre-integrated technology to make
> > your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on
> > Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> > dat=121642
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > Buy the iText book: http://itext.ugent.be/itext-in-action/
> >
>
>
>Aviso Legal:
>Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.
>
>Disclaimer:
>This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.
>
>

>-------------------------------------------------------------------------
>SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
>Check out Slashdot's new job board. Browse through tons of technical jobs
>posted by companies looking to hire people just like you.
>http://jobs.slashdot.org/

>_______________________________________________
>iText-questions mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>Buy the iText book: http://itext.ugent.be/itext-in-action/



Try the new Live Search today!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to