Quantcast

TSA sha-2, RSA algoritm

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

TSA sha-2, RSA algoritm

aszomor
Dear Team,

My TSA provider changed its cryptography algoritm from SHA1 to sha-2,  
RSA and I got an "Invalid TSA ... response, code 128" exception with  
the new TSA.

Do you have an example for signing with sha-2, RSA?

Thanks, Attila.



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TSA sha-2, RSA algoritm

Paulo Soares-4
It works with iText 5.2 and sha256. What version are you using and
with what code?

Paulo

On Fri, Mar 23, 2012 at 10:40 AM,  <[hidden email]> wrote:

> Dear Team,
>
> My TSA provider changed its cryptography algoritm from SHA1 to sha-2,
> RSA and I got an "Invalid TSA ... response, code 128" exception with
> the new TSA.
>
> Do you have an example for signing with sha-2, RSA?
>
> Thanks, Attila.
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> iText-questions mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TSA sha-2, RSA algoritm

aszomor
Hi Paulo,

I am use iTextSharp-5.2.0 and this demo program which I attached  
worked fine with the old SHA1 TSA.
Can you see into the  
iTextSharpPdfSigno\iTextSharpPdfSignoApplication\PdfInvoiceSigno.cs  
what it could be the problem?

Thanks, Attila.


Idézet (Paulo Soares <[hidden email]>):

> It works with iText 5.2 and sha256. What version are you using and
> with what code?

>
> Paulo
>
> On Fri, Mar 23, 2012 at 10:40 AM,  <[hidden email]> wrote:
>> Dear Team,
>>
>> My TSA provider changed its cryptography algoritm from SHA1 to sha-2,
>> RSA and I got an "Invalid TSA ... response, code 128" exception with
>> the new TSA.
>>
>> Do you have an example for signing with sha-2, RSA?
>>
>> Thanks, Attila.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> iText-questions mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with  
>> a reference to the iText book: http://www.itextpdf.com/book/
>> Please check the keywords list before you ask for examples:  
>> http://itextpdf.com/themes/keywords.php
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> iText-questions mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a  
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:  
> http://itextpdf.com/themes/keywords.php
>

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php

iTextSharpPdfSigno.zip (2M) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TSA sha-2, RSA algoritm

aszomor
Hi Paulo,

If you commented out line 100 and put this line into line 101 the  
program will working fine, but this TSA accept the SHA1.

ITSAClient tsc = new  
TSAClientBouncyCastle("http://tsa.safelayer.com:8093", "", "");

Attila.

Idézet ([hidden email]):

> Hi Paulo,
>
> I am use iTextSharp-5.2.0 and this demo program which I attached  
> worked fine with the old SHA1 TSA.
> Can you see into the  
> iTextSharpPdfSigno\iTextSharpPdfSignoApplication\PdfInvoiceSigno.cs  
> what it could be the problem?
>
> Thanks, Attila.
>
>
> Idézet (Paulo Soares <[hidden email]>):
>
>> It works with iText 5.2 and sha256. What version are you using and
>> with what code?
>
>>
>> Paulo
>>
>> On Fri, Mar 23, 2012 at 10:40 AM,  <[hidden email]> wrote:
>>> Dear Team,
>>>
>>> My TSA provider changed its cryptography algoritm from SHA1 to sha-2,
>>> RSA and I got an "Invalid TSA ... response, code 128" exception with
>>> the new TSA.
>>>
>>> Do you have an example for signing with sha-2, RSA?
>>>
>>> Thanks, Attila.
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> This SF email is sponsosred by:
>>> Try Windows Azure free for 90 days Click Here
>>> http://p.sf.net/sfu/sfd2d-msazure
>>> _______________________________________________
>>> iText-questions mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>
>>> iText(R) is a registered trademark of 1T3XT BVBA.
>>> Many questions posted to this list can (and will) be answered with  
>>>  a reference to the iText book: http://www.itextpdf.com/book/
>>> Please check the keywords list before you ask for examples:  
>>> http://itextpdf.com/themes/keywords.php
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> iText-questions mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with  
>> a  reference to the iText book: http://www.itextpdf.com/book/
>> Please check the keywords list before you ask for examples:  
>> http://itextpdf.com/themes/keywords.php
>>
>


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TSA sha-2, RSA algoritm

aszomor
Hi Paulo,

The problem is resolved I changed line 100 to this line, and working fine:

ITSAClient tsc = new  
TSAClientBouncyCastle("https://bteszt.e-szigno.hu/tsa", "teszt",  
"teszt", 6500, "sha256");

Attila.


Idézet ([hidden email]):

> Hi Paulo,
>
> If you commented out line 100 and put this line into line 101 the
> program will working fine, but this TSA accept the SHA1.
>
> ITSAClient tsc = new
> TSAClientBouncyCastle("http://tsa.safelayer.com:8093", "", "");
>
> Attila.
>
> Idézet ([hidden email]):
>
>> Hi Paulo,
>>
>> I am use iTextSharp-5.2.0 and this demo program which I attached
>> worked fine with the old SHA1 TSA.
>> Can you see into the
>> iTextSharpPdfSigno\iTextSharpPdfSignoApplication\PdfInvoiceSigno.cs
>> what it could be the problem?
>>
>> Thanks, Attila.
>>
>>
>> Idézet (Paulo Soares <[hidden email]>):
>>
>>> It works with iText 5.2 and sha256. What version are you using and
>>> with what code?
>>
>>>
>>> Paulo
>>>
>>> On Fri, Mar 23, 2012 at 10:40 AM,  <[hidden email]> wrote:
>>>> Dear Team,
>>>>
>>>> My TSA provider changed its cryptography algoritm from SHA1 to sha-2,
>>>> RSA and I got an "Invalid TSA ... response, code 128" exception with
>>>> the new TSA.
>>>>
>>>> Do you have an example for signing with sha-2, RSA?
>>>>
>>>> Thanks, Attila.
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF email is sponsosred by:
>>>> Try Windows Azure free for 90 days Click Here
>>>> http://p.sf.net/sfu/sfd2d-msazure
>>>> _______________________________________________
>>>> iText-questions mailing list
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>>
>>>> iText(R) is a registered trademark of 1T3XT BVBA.
>>>> Many questions posted to this list can (and will) be answered with
>>>>  a reference to the iText book: http://www.itextpdf.com/book/
>>>> Please check the keywords list before you ask for examples:
>>>> http://itextpdf.com/themes/keywords.php
>>>
>>> ------------------------------------------------------------------------------
>>> This SF email is sponsosred by:
>>> Try Windows Azure free for 90 days Click Here
>>> http://p.sf.net/sfu/sfd2d-msazure
>>> _______________________________________________
>>> iText-questions mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>
>>> iText(R) is a registered trademark of 1T3XT BVBA.
>>> Many questions posted to this list can (and will) be answered with
>>> a  reference to the iText book: http://www.itextpdf.com/book/
>>> Please check the keywords list before you ask for examples:
>>> http://itextpdf.com/themes/keywords.php
>>>
>>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> iText-questions mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a  
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:  
> http://itextpdf.com/themes/keywords.php
>


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TSA sha-2, RSA algoritm

Paulo Soares-4
In reply to this post by aszomor
I doubt that this is related to sha256. If you use
http://swisssign.com/en/products/time-stamping that is also sha26 it
will work correctly.

Paulo

2012/3/23  <[hidden email]>:

> Hi Paulo,
>
> If you commented out line 100 and put this line into line 101 the
> program will working fine, but this TSA accept the SHA1.
>
> ITSAClient tsc = new
> TSAClientBouncyCastle("http://tsa.safelayer.com:8093", "", "");
>
> Attila.
>
> Idézet ([hidden email]):
>
>> Hi Paulo,
>>
>> I am use iTextSharp-5.2.0 and this demo program which I attached
>> worked fine with the old SHA1 TSA.
>> Can you see into the
>> iTextSharpPdfSigno\iTextSharpPdfSignoApplication\PdfInvoiceSigno.cs
>> what it could be the problem?
>>
>> Thanks, Attila.
>>
>>
>> Idézet (Paulo Soares <[hidden email]>):
>>
>>> It works with iText 5.2 and sha256. What version are you using and
>>> with what code?
>>
>>>
>>> Paulo
>>>
>>> On Fri, Mar 23, 2012 at 10:40 AM,  <[hidden email]> wrote:
>>>> Dear Team,
>>>>
>>>> My TSA provider changed its cryptography algoritm from SHA1 to sha-2,
>>>> RSA and I got an "Invalid TSA ... response, code 128" exception with
>>>> the new TSA.
>>>>
>>>> Do you have an example for signing with sha-2, RSA?
>>>>
>>>> Thanks, Attila.
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF email is sponsosred by:
>>>> Try Windows Azure free for 90 days Click Here
>>>> http://p.sf.net/sfu/sfd2d-msazure
>>>> _______________________________________________
>>>> iText-questions mailing list
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>>
>>>> iText(R) is a registered trademark of 1T3XT BVBA.
>>>> Many questions posted to this list can (and will) be answered with
>>>>  a reference to the iText book: http://www.itextpdf.com/book/
>>>> Please check the keywords list before you ask for examples:
>>>> http://itextpdf.com/themes/keywords.php
>>>
>>> ------------------------------------------------------------------------------
>>> This SF email is sponsosred by:
>>> Try Windows Azure free for 90 days Click Here
>>> http://p.sf.net/sfu/sfd2d-msazure
>>> _______________________________________________
>>> iText-questions mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>
>>> iText(R) is a registered trademark of 1T3XT BVBA.
>>> Many questions posted to this list can (and will) be answered with
>>> a  reference to the iText book: http://www.itextpdf.com/book/
>>> Please check the keywords list before you ask for examples:
>>> http://itextpdf.com/themes/keywords.php
>>>
>>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> iText-questions mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TSA sha-2, RSA algoritm

aszomor
Hi Paulo,

Thanks your recommendation I did not known about Swiss Sign till now.

Attila.

Idézet (Paulo Soares <[hidden email]>):

> I doubt that this is related to sha256. If you use
> http://swisssign.com/en/products/time-stamping that is also sha26 it
> will work correctly.
>
> Paulo
>
> 2012/3/23  <[hidden email]>:
>> Hi Paulo,
>>
>> If you commented out line 100 and put this line into line 101 the
>> program will working fine, but this TSA accept the SHA1.
>>
>> ITSAClient tsc = new
>> TSAClientBouncyCastle("http://tsa.safelayer.com:8093", "", "");
>>
>> Attila.
>>
>> Idézet ([hidden email]):
>>
>>> Hi Paulo,
>>>
>>> I am use iTextSharp-5.2.0 and this demo program which I attached
>>> worked fine with the old SHA1 TSA.
>>> Can you see into the
>>> iTextSharpPdfSigno\iTextSharpPdfSignoApplication\PdfInvoiceSigno.cs
>>> what it could be the problem?
>>>
>>> Thanks, Attila.
>>>
>>>
>>> Idézet (Paulo Soares <[hidden email]>):
>>>
>>>> It works with iText 5.2 and sha256. What version are you using and
>>>> with what code?
>>>
>>>>
>>>> Paulo
>>>>
>>>> On Fri, Mar 23, 2012 at 10:40 AM,  <[hidden email]> wrote:
>>>>> Dear Team,
>>>>>
>>>>> My TSA provider changed its cryptography algoritm from SHA1 to sha-2,
>>>>> RSA and I got an "Invalid TSA ... response, code 128" exception with
>>>>> the new TSA.
>>>>>
>>>>> Do you have an example for signing with sha-2, RSA?
>>>>>
>>>>> Thanks, Attila.
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF email is sponsosred by:
>>>>> Try Windows Azure free for 90 days Click Here
>>>>> http://p.sf.net/sfu/sfd2d-msazure
>>>>> _______________________________________________
>>>>> iText-questions mailing list
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>>>
>>>>> iText(R) is a registered trademark of 1T3XT BVBA.
>>>>> Many questions posted to this list can (and will) be answered with
>>>>>  a reference to the iText book: http://www.itextpdf.com/book/
>>>>> Please check the keywords list before you ask for examples:
>>>>> http://itextpdf.com/themes/keywords.php
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF email is sponsosred by:
>>>> Try Windows Azure free for 90 days Click Here
>>>> http://p.sf.net/sfu/sfd2d-msazure
>>>> _______________________________________________
>>>> iText-questions mailing list
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>>
>>>> iText(R) is a registered trademark of 1T3XT BVBA.
>>>> Many questions posted to this list can (and will) be answered with
>>>> a  reference to the iText book: http://www.itextpdf.com/book/
>>>> Please check the keywords list before you ask for examples:
>>>> http://itextpdf.com/themes/keywords.php
>>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> iText-questions mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with  
>> a reference to the iText book: http://www.itextpdf.com/book/
>> Please check the keywords list before you ask for examples:  
>> http://itextpdf.com/themes/keywords.php
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> iText-questions mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a  
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:  
> http://itextpdf.com/themes/keywords.php
>


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TSA sha-2, RSA algoritm

aszomor
In reply to this post by Paulo Soares-4
Hi Paulo,

Which date we used in PdfPKCS7.VerifyCertificates for  PAdES-LTV  
TimeStampDate or the latest SignDate from sugnatures ?

eg.:
// PAdES LTV -> pk.SignDate is "1/1/0001 12:00:00 AM"
DateTime cal = pk.SignDate.Equals(new DateTime(1, 1, 1, 0, 0, 0)) ?  
pk.TimeStampDate : pk.SignDate;


Thanks, Attila.



Idézet (Paulo Soares <[hidden email]>):

> It works with iText 5.2 and sha256. What version are you using and
> with what code?
>
> Paulo
>
> On Fri, Mar 23, 2012 at 10:40 AM,  <[hidden email]> wrote:
>> Dear Team,
>>
>> My TSA provider changed its cryptography algoritm from SHA1 to sha-2,
>> RSA and I got an "Invalid TSA ... response, code 128" exception with
>> the new TSA.
>>
>> Do you have an example for signing with sha-2, RSA?
>>
>> Thanks, Attila.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> iText-questions mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with  
>> a reference to the iText book: http://www.itextpdf.com/book/
>> Please check the keywords list before you ask for examples:  
>> http://itextpdf.com/themes/keywords.php
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> iText-questions mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a  
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:  
> http://itextpdf.com/themes/keywords.php
>


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
mkl
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TSA sha-2, RSA algoritm

mkl
Attila,

aszomor wrote
Which date we used in PdfPKCS7.VerifyCertificates for  PAdES-LTV
TimeStampDate or the latest SignDate from sugnatures ?
Are you asking which date you _should_ use as parameter for VerifyCertificates?

If the validation model for the PKIs in question is 'shell', you either have to use the current date or at least (if by verifying backwards the timestamps as recommended in the PAdES specification you know you can trust them) a date not older than that of the earliest document time stamp added after the signature in question.

If the validation model is 'chain', you have to tweak that method to for each certificate use the date of its usage (signing of document or of child certificate in the certificate path) as far as you can trust it. Depending on the cirsumstances (e.g. legal requirements), 'trust' may or may not require timestamps.

If the circumstances require you to not only check for revocation but also for existence, the dates you can use may even be more restricted.

Regards,   Michael
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [SPAM] Re: TSA sha-2, RSA algoritm

Dixit Sangeeta
Hi,

How to set cell Height dynamic.
Based on the text length height should vary.

-----Original Message-----
From: mkl [mailto:[hidden email]]
Sent: 25 March 2012 17:21
To: [hidden email]
Subject: [iText-questions] [SPAM] Re: TSA sha-2, RSA algoritm

Attila,


aszomor wrote
> Which date we used in PdfPKCS7.VerifyCertificates for  PAdES-LTV
> TimeStampDate or the latest SignDate from sugnatures ?

Are you asking which date you _should_ use as parameter for
VerifyCertificates?

If the validation model for the PKIs in question is 'shell', you either
have
to use the current date or at least (if by verifying backwards the
timestamps as recommended in the PAdES specification you know you can
trust
them) a date not older than that of the earliest document time stamp
added
after the signature in question.

If the validation model is 'chain', you have to tweak that method to for
each certificate use the date of its usage (signing of document or of
child
certificate in the certificate path) as far as you can trust it.
Depending
on the cirsumstances (e.g. legal requirements), 'trust' may or may not
require timestamps.

If the circumstances require you to not only check for revocation but
also
for existence, the dates you can use may even be more restricted.

Regards,   Michael

--
View this message in context:
http://itext-general.2136553.n4.nabble.com/TSA-sha-2-RSA-algoritm-tp4498
440p4503040.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php
This email and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this email in error, please notify the sender and immediately delete it from your system. Do not copy, use, disclose or otherwise act upon any part of this email or its attachments.

Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any internet communications by any third party, or from the transmission of any viruses. Replies to this email may be monitored by the Barclays Group for operational or business reasons.

Any opinion or other information in this email or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group.

Barclaycard is a trading name of Barclays Bank PLC. Registered in England. Registered No: 1026167. Registered Office: 1 Churchill Place, London, E14 5HP. Barclays Bank PLC is authorised and regulated by the Financial Services Authority.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TSA sha-2, RSA algoritm

iText Software
On 25/03/2012 14:16, Dixit Sangeeta wrote:
> How to set cell Height dynamic.
> Based on the text length height should vary.
1. Is this a question about the cell height in a PdfPTable? (My
interpretation when reading the question.)
2. Or is this a question about the height of a visible digital
signature? (My interpretation when reading the subject line.)

If 1.: the cell height changes automatically based on the content. You
don't need to do anything special.
If 2.: if you're filling out an empty signature field, the dimensions of
the visible signature are already defined, but you have different
options to position/scale the content. If there is no signature field,
you can define the dimensions yourself.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Loading...