R: Bc error validating signature with ECC cert

Emiliano Latini <[email protected]> Fri, 13 Dec 2019 11:55:28 +0000
Newsgroups gmane.comp.encryption.bouncy-castle.devel
Message-ID <PR1PR01MB4795640428AE182C55E9FEA198540@PR1PR01MB4795.eurprd01.prod.exchangelabs.com>
--_000_PR1PR01MB4795640428AE182C55E9FEA198540PR1PR01MB4795eurp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thank you David,

you were right, somehow I was using sunjce. With BC it works



Emiliano Latini
Engineering's Software Laboratory
Direct:                     +39 06 87594577
Mobile:                    +39 347  7906590

E-mail :                    [email protected]
Engineering Ingegneria Informatica spa
Piazzale dell'Agricoltura, 24 - 00144 Roma
Segui Engineering su Twitter! (@EngineeringSpA)
www.eng.it<http://www.eng.it/>

Da: David Hook [mailto:dgh-rTAZ0PM/[email protected]]
Inviato: venerd=EC 13 dicembre 2019 12:26
A: [email protected]
Oggetto: Re: [dev-crypto] Bc error validating signature with ECC cert


Are you sure the BC provider is being used here? I would have expected

new JcaSimpleSignerInfoVerifierBuilder().setProvider("BC").build(certHolder=
)

If that was the case.

Regards,

David

On 13/12/19 10:13 pm, Emiliano Latini wrote:
Hi all,

I'm checking a signature with BC, ti worked for months but I've came across=
 this excetion checking a signed a file:

java.io.IOException: Unknown named curve: 1.3.36.3.3.2.8.1.1.7

A brief search resulted in problems with ECC certificates such as brainpool=
.

Any Ideas?

Below a snippet of code:

ASN1InputStream aIn =3D new ASN1InputStream(signedData);
            CMSSignedData s =3D new CMSSignedData(ContentInfo.getInstance(a=
In.readObject()));

            aIn.close();

            Store certs =3D s.getCertificates();
            SignerInformationStore signers =3D s.getSignerInfos();
            Collection<SignerInformation> c =3D signers.getSigners();

            List<Boolean> isValidSigner =3D new ArrayList<Boolean>();
            CertificateHelper x509CertHelper=3D new CertificateHelper();
            for(SignerInformation signer:c){

                  Collection<X509CertificateHolder> certCollection =3D cert=
s.getMatches(signer.getSID());
                  Iterator<X509CertificateHolder> certIt =3D certCollection=
.iterator();
                  X509CertificateHolder certHolder =3D certIt.next();
                  boolean verifResult =3D signer.verify(new JcaSimpleSigner=
InfoVerifierBuilder().build(certHolder));


             ...

The exception arises in: signer.verify(new JcaSimpleSignerInfoVerifierBuild=
er().build(certHolder));





--_000_PR1PR01MB4795640428AE182C55E9FEA198540PR1PR01MB4795eurp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"Segoe UI";
	panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
	{font-family:"Courier New \;color\:lavender";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	color:black;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";
	color:black;}
span.StileMessaggioDiPostaElettronica17
	{mso-style-type:personal;
	font-family:"Tahoma","sans-serif";
	color:windowtext;}
span.StileMessaggioDiPostaElettronica19
	{mso-style-type:personal-reply;
	font-family:"Tahoma","sans-serif";
	color:#0070C0;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=3D"white" lang=3D"IT" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:#0070C0">Thank you David,
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:#0070C0"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:#0070C0">you were right, somehow I =
was using sunjce. With BC it works<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:#0070C0"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:#0070C0"><o:p>&nbsp;</o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:#0070C0"><o:p>&nbsp;</o:p></span></=
p>
<div>
<p class=3D"MsoNormal"><b><span style=3D"font-size:7.5pt;font-family:&quot;=
Tahoma&quot;,&quot;sans-serif&quot;;color:gray;mso-fareast-language:IT">Emi=
liano Latini</span></b><span style=3D"color:navy;mso-fareast-language:IT">
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><b><span style=3D"font-size:7.5pt;font-family:&quot;Tahoma&quot;,&=
quot;sans-serif&quot;;color:gray;mso-fareast-language:IT">Engineering's Sof=
tware Laboratory</span></b><span style=3D"font-size:12.0pt;font-family:&quo=
t;Times New Roman&quot;,&quot;serif&quot;;color:#0070C0;mso-fareast-languag=
e:IT"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:7.5pt;font-family:&quot;Tahoma&quot;,&quo=
t;sans-serif&quot;;color:gray;mso-fareast-language:IT">Direct:&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#43;39 06&nbsp;87594577&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;
</span><span style=3D"font-size:12.0pt;font-family:&quot;Times New Roman&qu=
ot;,&quot;serif&quot;;color:navy;mso-fareast-language:IT"><br>
</span><span style=3D"font-size:7.5pt;font-family:&quot;Tahoma&quot;,&quot;=
sans-serif&quot;;color:gray;mso-fareast-language:IT">Mobile:&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;
</span><span lang=3D"EN-GB" style=3D"font-size:7.5pt;font-family:&quot;Taho=
ma&quot;,&quot;sans-serif&quot;;color:gray;mso-fareast-language:IT">&#43;39=
 347&nbsp; 7906590</span><span lang=3D"EN-GB" style=3D"font-size:12.0pt;fon=
t-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:navy;mso-farea=
st-language:IT">&nbsp;<br>
</span><span lang=3D"EN-GB" style=3D"font-size:7.5pt;font-family:&quot;Taho=
ma&quot;,&quot;sans-serif&quot;;color:gray;mso-fareast-language:IT">&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span lang=3D"EN-GB" style=3D"font-size:12.0pt;font-family:&quot;Tim=
es New Roman&quot;,&quot;serif&quot;;color:navy;mso-fareast-language:IT"><b=
r>
</span><span lang=3D"EN-GB" style=3D"font-size:7.5pt;font-family:&quot;Taho=
ma&quot;,&quot;sans-serif&quot;;color:gray;mso-fareast-language:IT">E-mail =
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [email protected]
</span><span lang=3D"EN-GB" style=3D"font-size:12.0pt;font-family:&quot;Tim=
es New Roman&quot;,&quot;serif&quot;;color:navy;mso-fareast-language:IT"><o=
:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><b><span lang=3D"EN-GB" style=3D"font-size:7.5pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;;color:gray;mso-fareast-language:IT">En=
gineering Ingegneria Informatica spa<br>
Piazzale dell&#8217;Agricoltura,&nbsp;24 - 00144 Roma<o:p></o:p></span></b>=
</p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><b><span lang=3D"EN-GB" style=3D"font-size:7.5pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;;color:gray;mso-fareast-language:IT">Se=
gui Engineering su Twitter! (@EngineeringSpA)</span></b><span style=3D"font=
-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;colo=
r:#0070C0;mso-fareast-language:IT"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><b><span lang=3D"EN-GB" style=3D"font-size:7.5pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;;color:gray;mso-fareast-language:IT"><a=
 href=3D"http://www.eng.it/">www.eng.it</a>
</span></b><span style=3D"font-size:12.0pt;font-family:&quot;Times New Roma=
n&quot;,&quot;serif&quot;;color:#0070C0;mso-fareast-language:IT"><o:p></o:p=
></span></p>
</div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:#0070C0"><o:p>&nbsp;</o:p></span></=
p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Segoe UI&quot;,&quot;sans-serif&quot;;color:windowtext;mso-fareast-languag=
e:IT">Da:</span></b><span style=3D"font-size:10.0pt;font-family:&quot;Segoe=
 UI&quot;,&quot;sans-serif&quot;;color:windowtext;mso-fareast-language:IT">=
 David
 Hook [mailto:dgh-rTAZ0PM/[email protected]] <br>
<b>Inviato:</b> venerd=EC 13 dicembre 2019 12:26<br>
<b>A:</b> [email protected]<br>
<b>Oggetto:</b> Re: [dev-crypto] Bc error validating signature with ECC cer=
t<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Are you sure the BC provider is being used here? I w=
ould have expected<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">new JcaSimpleSignerInfoVerifierBuilder().setProvider=
(&quot;BC&quot;).build(certHolder)<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">If that was the case.<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">David<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">On 13/12/19 10:13 pm, Emiliano Latini wrote:<o:p></o=
:p></p>
</div>
<blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt">
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">Hi all,</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">I&#8217;m checking a signature with BC, =
ti worked for months but I&#8217;ve came across this excetion checking a si=
gned a file:</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">java.io.IOException: Unknown named curve=
: 1.3.36.3.3.2.8.1.1.7</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">A brief search resulted in problems with=
 ECC certificates such as brainpool.</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">Any Ideas?</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">Below a snippet of code:</span><o:p></o:=
p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"margin-left:35.4pt;text-indent:35.4pt;text-=
autospace:none">
<span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;,&quot;s=
erif&quot;">ASN1InputStream aIn =3D new ASN1InputStream(signedData);</span>=
<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMSSignedData s =
=3D new CMSSignedData(ContentInfo.getInstance(aIn.readObject()));</span><o:=
p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aIn.close();</span=
><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Store certs =3D s.=
getCertificates();</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SignerInformationS=
tore signers =3D s.getSignerInfos();</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Collection&lt;Sign=
erInformation&gt; c =3D signers.getSigners();</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; List&lt;Boolean&gt=
; isValidSigner =3D new ArrayList&lt;Boolean&gt;();</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CertificateHelper =
x509CertHelper=3D new CertificateHelper();</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(SignerInformat=
ion signer:c){</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;
</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; Collection&lt;X509CertificateHolder&gt; certCollection =
=3D certs.getMatches(signer.getSID());</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; Iterator&lt;X509CertificateHolder&gt; certIt =3D certColl=
ection.iterator();</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;,&quot;serif&quot;">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; X509CertificateHolder certHolder =3D certIt.next();</span=
><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Co=
urier New&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; boolean veri=
fResult =3D signer.verify(new JcaSimpleSignerInfoVerifierBuilder().build(ce=
rtHolder))</span><span style=3D"font-size:10.0pt;font-family:&quot;Courier =
New ;color:lavender&quot;,&quot;serif&quot;">;</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Co=
urier New ;color:lavender&quot;,&quot;serif&quot;">&nbsp;</span><o:p></o:p>=
</p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas=
;color:lavender">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas=
;color:lavender">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; &#8230;</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:lavender">&nbsp;</span><o:p></o:p><=
/p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">The except=
ion arises in:</span><span style=3D"font-size:10.0pt;font-family:&quot;Cour=
ier New&quot;,&quot;serif&quot;"> signer.verify(new JcaSimpleSignerInfoVeri=
fierBuilder().build(certHolder));</span><o:p></o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas=
;color:lavender">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal">&nbsp;<o:p></o:p></p>
</blockquote>
<p><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_PR1PR01MB4795640428AE182C55E9FEA198540PR1PR01MB4795eurp_--