Skip to content

Commit

Permalink
Made C1 country code mandatory as per Peppol SBDH v2.0.1 and fixed ex…
Browse files Browse the repository at this point in the history
…pired SMP certificate
  • Loading branch information
aaron-kumar committed Oct 14, 2023
1 parent cbb693d commit ef40673
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ static void write(XMLStreamWriter streamWriter, Header header) throws SbdhExcept
// ProcessID
scopes.add(SbdhHelper.createScope(header.getProcess()));
// C1CountryIdentifier
// C1 Country is Not mandatory yet
if(null != header.getC1CountryIdentifier()){
scopes.add(SbdhHelper.createScope(header.getC1CountryIdentifier()));
}
scopes.add(SbdhHelper.createScope(header.getC1CountryIdentifier()));
// Extras
header.getArguments().forEach(ai -> scopes.add(SbdhHelper.createScope(ai)));

Expand Down
Binary file modified peppol-security/src/test/resources/smp-random-test.cer
Binary file not shown.

0 comments on commit ef40673

Please sign in to comment.