...
- One eSchKG/e-LP/e-LEF application (message type = 10301) has to be connected to the sedex network.
- The application uses a single signing outbox to sign PDF files by the MH. The configuration parameter for signing will be read from the sedex certificate configuration file (CertificateConfiguration.xml).
- One nativeApp -> Native Mode.
...
Code Block | ||||
---|---|---|---|---|
| ||||
/mh_examples/case6/ . +-- application ¦ +-- inbox ¦ +-- outbox ¦ +-- processed ¦ +-- signing-outbox +-- log ¦ +-- mh ¦ +-- sedex +-- mh ¦ +-- install-dir ¦ ¦ +-- bin ¦ ¦ +-- conf ¦ ¦ ¦ +-- certificate.p12 ¦ ¦ ¦ +-- config.xml ¦ ¦ ¦ +-- config.xsd ¦ ¦ ¦ +-- log4j.properties ¦ ¦ ¦ +-- recipientIdResolver.groovy ¦ ¦ ¦ +-- signature.properties ¦ ¦ +-- lib ¦ +-- working-dir ¦ +-- corrupted ¦ +-- db ¦ +-- sent ¦ +-- tmp ¦ ¦ +-- preparing ¦ ¦ +-- receiving ¦ +-- unknown +-- sedex +-- inboxcertificate ¦ +-- outboxcertificate1.p12 +-- conf receipts ¦ +-- sent | ||||
Code Block | ||||
| ||||
<?xml version="1.0" encoding="UTF-8"?> <config certificateConfiguration.xml ¦ +-- CertificateConfiguration-1-0.xsd +-- inbox +-- outbox +-- receipts +-- sent |
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://msghandler.suis.admin.ch/xmlns/config config.xsd" xmlns="http://msghandler.suis.admin.ch/xmlns/config" version="3.0"> <sedexAdapter> <participantId>T7-4-1</participantId> <inboxDir>/mh_examples/case6/sedex/inbox</inboxDir> <outboxDir>/mh_examples/case6/sedex/outbox</outboxDir> <receiptDir>/mh_examples/case6/sedex/receipts</receiptDir> <sentDir>/mh_examples/case6/sedex/sent</sentDir> </sedexAdapter> <messageHandler> <!-- In diesem Pfad mssen die MH Basis-Verzeichnisse sein: corrupted, tmp, unkown, etc. --> <workingDir dirPath="/mh_examples/case6/mh/working-dir"/> <!-- Wo starten relative Pfade --> <baseDir dirPath="/mh_examples/case6/application"/> <!-- wie oft wird die sedex inbox geprft --> <sedexInboxDirCheck cron="0/30 * * * * ?" /> <!-- wie oft wird das sedex receipts directoty geprft --> <sedexReceiptDirCheck cron="0/30 * * * * ?" /> <!-- jede *outbox kann Wert berschreiben --> <defaultOutboxCheck cron="0/30 * * * * ?" /> <webserviceInterface host="localhost" port="18080"/> <statusDatabase dirPath="/mh_examples/case6/mh/working-dir/db" dataHoldTimeInDays="2" resend="true"/> <protocol createPerMessageProtocols="false"/> </messageHandler> <nativeApp participantId="T7-4-1" > <!-- die lokale sedexId --> <outbox dirPath="outbox" msgType="10301"> <recipientIdResolver filePath="/mh_examples/case6/mh/install-dir/conf/recipientIdResolver.groovy" method="resolve" /> <signingOutbox dirPath="signing-outbox" processedDir="processed" signingProfilePath="/mh_examples/case6/mh/install-dir/conf/signature.properties"> <certificateConfigFile <certificate filePath="/mh_examples/case6/mhsedex/install-dir/conf/certificatecertificateConfiguration.p12" password="secret"xml"/> </signingOutbox> </outbox> <inbox dirPath="inbox" msgTypes="10301"/> </nativeApp> </config> |
...
- One eSchKG/e-LP/e-LEF application (message type = 10301) has to be connected to the sedex network.
- The application uses two signing outboxes to sign PDF files by the MH. One of these outboxes is configured with a p12 file and password, the other is configured with the sedex certificate configuration file (CertificateConfiguration.xml).
- One nativeApp -> Native Mode.
...
Code Block | ||
---|---|---|
| ||
/mh_examples/case7/ . +-- application ¦ +-- inbox ¦ +-- outbox ¦ +-- signing-outbox1 ¦ +-- signing-outbox2 +-- log ¦ +-- mh ¦ +-- sedex +-- mh ¦ +-- install-dir ¦ ¦ +-- bin ¦ ¦ +-- conf ¦ ¦ ¦ +-- certificate1.p12 ¦ ¦ ¦ +-- certificate2config.p12xml ¦ ¦ ¦ +-- config.xmlxsd ¦ ¦ ¦ +-- log4j.properties ¦ ¦ ¦ +-- configrecipientIdResolver.xsdgroovy ¦ ¦ ¦ +-- signature1.properties ¦ ¦ ¦ +-- log4jsignature2.properties ¦ ¦ +-- lib ¦ +-- recipientIdResolver.groovyworking-dir ¦ +-- corrupted ¦ +-- db ¦ +-- signature1.propertiessent ¦ +-- tmp ¦ ¦ +-- signature2.propertiespreparing ¦ ¦ +-- libreceiving ¦ +-- unknown +-- working-dir ¦ sedex +-- corruptedcertificate ¦ +-- certificate2.p12 +-- dbconf ¦ +-- sentcertificateConfiguration.xml ¦ +-- CertificateConfiguration-1-0.xsd +-- inbox +-- outbox +-- tmp ¦ ¦ +-- preparing ¦ ¦ +-- receiving ¦ +-- unknown +-- sedex +-- inbox +-- outbox +-- receipts +-- receipts +-- sent |
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://msghandler.suis.admin.ch/xmlns/config config.xsd" xmlns="http://msghandler.suis.admin.ch/xmlns/config" version="3.0"> <sedexAdapter> <participantId>T7-4-1</participantId> <inboxDir>/mh_examples/case7/sedex/inbox</inboxDir> <outboxDir>/mh_examples/case7/sedex/outbox</outboxDir> <receiptDir>/mh_examples/case7/sedex/receipts</receiptDir> <sentDir>/mh_examples/case7/sedex/sent</sentDir> </sedexAdapter> <messageHandler> <!-- In diesem Pfad mssen die MH Basis-Verzeichnisse sein: corrupted, tmp, unkown, etc. --> <workingDir dirPath="/mh_examples/case7/mh/working-dir"/> <!-- Wo starten relative Pfade --> <baseDir dirPath="/mh_examples/case7/application"/> <!-- wie oft wird die sedex inbox geprft --> <sedexInboxDirCheck cron="0/30 * * * * ?" /> <!-- wie oft wird das sedex receipts directoty geprft --> <sedexReceiptDirCheck cron="0/30 * * * * ?" /> <!-- jede *outbox kann Wert berschreiben --> <defaultOutboxCheck cron="0/30 * * * * ?" /> <webserviceInterface host="localhost" port="18080"/> <statusDatabase dirPath="/mh_examples/case7/mh/working-dir/db" dataHoldTimeInDays="2" resend="true"/> <protocol createPerMessageProtocols="false"/> </messageHandler> <nativeApp participantId="T7-4-1" > <!-- die lokale sedexId --> <outbox dirPath="outbox" msgType="10301"> <recipientIdResolver filePath="/mh_examples/case7/mh/install-dir/conf/recipientIdResolver.groovy" method="resolve" /> <signingOutbox dirPath="signing-outbox1" signingProfilePath="/mh_examples/case7/mh/install-dir/conf/signature1.properties"> <certificate filePath="/mh_examples/case7/mh/install-dir/conf/certificate1.p12" password="secret"/> </signingOutbox> <signingOutbox dirPath="signing-outbox2" signingProfilePath="/mh_examples/case7/mh/install-dir/conf/signature2.properties"> <certificateConfigFile <certificate filePath="/mh_examples/case7/mh/install-dir/conf/certificate2.p12" password="secret filePath="/mh_examples/case7/sedex/conf/certificateConfiguration.xml"/> </signingOutbox> </outbox> <inbox dirPath="inbox" msgTypes="10301"/> </nativeApp> </config> |
...
signature1.properties and signature2.properties: See case 6
/mh_examples/case6/
.
??? application
? ??? inbox
? ??? outbox
? ??? processed
? ??? signing-outbox
??? log
? ??? mh
? ??? sedex
??? mh
? ??? install-dir
? ? ??? bin
? ? ??? conf
? ? ? ??? config.xml
? ? ? ??? config.xsd
? ? ? ??? log4j.properties
? ? ? ??? recipientIdResolver.groovy
? ? ? ??? signature.properties
? ? ??? lib
? ??? working-dir
? ??? corrupted
? ??? db
? ??? sent
? ??? tmp
? ? ??? preparing
? ? ??? receiving
? ??? unknown
??? sedex
??? certificate
? ??? certificate1.p12
??? conf
? ??? certificateConfiguration.xml
? ??? CertificateConfiguration-1-0.xsd
??? inbox
??? outbox
??? receipts
??? sent