EldoS | Feel safer!

Software components for data protection, secure storage and transfer

XML Verify in Simple Signer

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#14266
Posted: 08/23/2010 05:35:26
by Jesus Garcia (Standard support level)
Joined: 05/23/2010
Posts: 15

I'm using SimpleSigner to sign xml document and learn how to work with xml files. I hav loaded an XML document and signed it with a Windows Certificate Enveloped.

After sign the documentelement, when i click on verify i allways get an exception with 'The certificate is not valid'. What am i doing wrong?.

The xml
<PeticionesDS xmlns="">
<Peticion><NumeroRegistro>14089255</NumeroRegistro><FechaRegistro>10/08/2010 00:00:00</FechaRegistro><FechaExtraccion>10/08/2010 00:00:00</FechaExtraccion>O<CentroExtraccionCodigo>15</CentroExtraccionCodigo><CentroExtraccionNombre>C.T. Gil y Morte</CentroExtraccionNombre><Observaciones /><AtributosPeticion /><Paciente><NumeroHistoria>811838</NumeroHistoria><NumeroSIP>6723078</NumeroSIP><NumeroSS>46/10689762/14</NumeroSS><DNI /><Nombre>DAVID</Nombre><Apellido1>AAAAAAA</Apellido1><Apellido2>BBBBBBBBBBB</Apellido2><FechaNacimiento>05/03/2007</FechaNacimiento>M<Direccion /><Provincia /><CodigoPostal>46007</CodigoPostal><Telefono1 /><Cama /></Paciente><Origen><FacultativoOrigen><Codigo>85303657S</Codigo><Nombre>ANA ISABEL</Nombre><Apellido1>PIQUERAS</Apellido1><Apellido2>ARENAS</Apellido2><Descripcion>PIQUERAS ARENAS, ANA ISABEL</Descripcion><NumeroColegiado>26800</NumeroColegiado><DNI>85303657S</DNI></FacultativoOrigen><Codigo>MFA</Codigo><Descripcion>MEDICINA FAMILIAR: GENERAL</Descripcion><Codigo>PC1MFAA</Codigo><Descripcion>AP - GIL-MORTE: Medicina Familia</Descripcion></Origen><Diagnosticos><Diagnostico><Codigo /><Texto /></Diagnostico></Diagnosticos><Pruebas><Prueba><Tecnica>9155</Tecnica><Muestra>1018</Muestra><Laboratorio>1</Laboratorio><AtributosPrueba /><LineaComentarioPrueba /><Resultados /></Prueba></Pruebas><LineaComentarioPeticion /><Imagen><Ruta /></Imagenes></Peticion></PeticionesDS>
#14267
Posted: 08/23/2010 05:57:15
by Jesus Garcia (Standard support level)
Joined: 05/23/2010
Posts: 15

I have seen that the problem was validating CRLs. The object could not access CRLs and raises an exception that is catched and translated to the error. I have input

CertificateValidator.CheckCRL := False;

and now runs ok.
#14268
Posted: 08/23/2010 07:06:06
by Lukas Vyslouzil (Standard support level)
Joined: 08/21/2009
Posts: 20

Hi , could you please let me know , where can i find SimpleSigner application source code? I have red a lot about this piece of code on this forum but i was not able to find the sources... thx a lot. Jan
#14269
Posted: 08/23/2010 08:39:26
by Eugene Mayevski (EldoS Corp.)

In <Samples>\...\XMLBlackbox folder. Samples folder is accessible via Start menu.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 1633 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!