EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Ref.URINodes signing multiple nodes

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#34656
Posted: 10/08/2015 06:18:04
by Cadis d.o.o.  (Standard support level)
Joined: 04/19/2013
Posts: 13

I've tested it on https://www.aleksey.com/xmlsec/xmldsig-verifier.html
#34658
Posted: 10/08/2015 06:29:36
by Eugene Mayevski (EldoS Corp.)

That verifier is not ideal, unfortunately. I assume that you need to post the file to some recipient, so it makes sense to test the signature with the recipient rather than with third-party service. The fact that the file will pass that service doesn't guarantee that the signature will be well handled by the intended recipient.


Sincerely yours
Eugene Mayevski
#34661
Posted: 10/08/2015 06:57:17
by Cadis d.o.o.  (Standard support level)
Joined: 04/19/2013
Posts: 13

Yes my recipient told me that xml reference #prijava1 is invalid!But I don't know why.
I have id="prijava1" in my ehr:Prijava element
I have id="info1" in my ehr:Info element

So the reference should be found!

?????
#34662
Posted: 10/08/2015 07:01:01
by Dmytro Bogatskyy (EldoS Corp.)

Hi,

Quote
I have id="prijava1" in my ehr:Prijava element

Please try to change the attribute name to "Id" prior signing.
Do you have the sample document that would pass validation on that third-party service?
#34663
Posted: 10/08/2015 07:22:02
by Cadis d.o.o.  (Standard support level)
Joined: 04/19/2013
Posts: 13

No I don't have any sample. I've allredy tried to change to Id and to ID but it does't make any difference!
#34664
Posted: 10/08/2015 07:23:10
by Eugene Mayevski (EldoS Corp.)

Could you ask the recipient for a sample then? Because otherwise we would spend a lot of time guessing what could be wrong.


Sincerely yours
Eugene Mayevski
#34669
Posted: 10/08/2015 08:07:07
by Cadis d.o.o.  (Standard support level)
Joined: 04/19/2013
Posts: 13

Yes I know I allredy lost some valuable time and I don't have any clue what could be wrong!
#34670
Posted: 10/08/2015 08:19:24
by Eugene Mayevski (EldoS Corp.)

Well, if you don't have another options, please try to follow Dmytro's suggestion and change the case of attributes (try Id, ID...) .

But it's better to ask for a sample valid document.


Sincerely yours
Eugene Mayevski
#34673
Posted: 10/08/2015 08:40:11
by Cadis d.o.o.  (Standard support level)
Joined: 04/19/2013
Posts: 13

I agree
#34694
Posted: 10/09/2015 04:57:56
by Cadis d.o.o.  (Standard support level)
Joined: 04/19/2013
Posts: 13

I've tested xml signing with Eldos componet and every time i signe reference element and save it my chosen node validation doesn't work!!!

Can anyone writes me a sample how to sign my elements (INFO, PRIJAVA) and save it to ehr:Signatures node. validation must be succesfull. Here is XML DOC.

<?xml version="1.0" encoding="utf-8"?>
<ehr:EvemHRDocument xmlns:ehr="http://www.src.si/schemas/evem/hr/20090909" xmlns:n1="http://zzzs.si/b2b/ePrijave" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ehr:Info datumPriprave="2015-10-09T10:52:55.0Z" id="info1" oznakaDokumenta="ReferencnaOznaka-09102015-01/23" vrstaPostopka="prijava">
<ehr:Referent email="bostjan.pokrivac@cadis.si" ime="Bostjan" priimek="Pokrivac" telefon="02 5776 728"/>
</ehr:Info>
<ehr:Prijava id="prijava1">
<PosiljkaPIZZ xmlns="http://zzzs.si/b2b/ePrijave" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Posiljka>
<VerzijaSporocila>0006</VerzijaSporocila>
00
</Posiljka>
<Zavezanec>
<NazivPrviDel>CADIS d.o.o.</NazivPrviDel>
<MatStevPRSZapos>5454891000</MatStevPRSZapos>
<RegistrskaStevilka>5022035918</RegistrskaStevilka>
<Naslov>
Mlinska ulica 5
9220
<KrajPoste>LENDAVA/LENDVA</KrajPoste>
999
Neznan
705
Slovenija
</Naslov>
<Obrazec_M1_M2_M3>
<Obrazec>
<Vrsta>M-1</Vrsta>
1
<DatumPriprave>2015-10-09</DatumPriprave>
<OpombaZavezanca1>3651d3a2sd </OpombaZavezanca1>
<DatumObdelaveZZZS>2015-10-09</DatumObdelaveZZZS>
<ReferentZZZS>Boštjan Pokrivač</ReferentZZZS>
</Obrazec>
<Zavarovanec>
<Emso>1504979500191</Emso>
<Drzavljanstvo>705</Drzavljanstvo>
<Priimek>POKRIVAČ</Priimek>
BOŠTJAN
</Zavarovanec>
<Zavarovanje>
<Podlaga>001</Podlaga>
<DatumPricetka>2003-04-25</DatumPricetka>
<RegStevPrijavePotrebePoDelavcu>adasd1</RegStevPrijavePotrebePoDelavcu>
<DelovniZavarovalniCas>40</DelovniZavarovalniCas>
<PolniZavarovalniCasZavezanca>40</PolniZavarovalniCasZavezanca>
<DelovnoRazmerje>1</DelovnoRazmerje>
<DatumIztekaZavarovalnihPogojev>1899-12-30</DatumIztekaZavarovalnihPogojev>
</Zavarovanje>
</Obrazec_M1_M2_M3>
</Zavezanec>
</PosiljkaPIZZ>
</ehr:Prijava>
<ehr:Signatures>
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 7512 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!