-
Notifications
You must be signed in to change notification settings - Fork 21
/
ConfigAndCmds.txt
135 lines (100 loc) · 6.2 KB
/
ConfigAndCmds.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
senderPrivateKSType=jks
senderPublicKSType=jks
receiverPrivateKSType=jks
receiverPublicKSType=jks
approverPrivateKSType=jks
approverPublicKSType=jks
senderPrivateKSFile=Keystore/Canada_PrepTool/KSprivateCA.jks
senderPublicKSFile=Keystore/Canada_PrepTool/KSpublicCA.jks
receiverPrivateKSFile=Keystore/IRS_PrepTool/KSprivateUS.jks
receiverPublicKSFile=Keystore/IRS_PrepTool/KSpublicUS.jks
approverPrivateKSFile=Keystore/Mexico_PrepTool/KSprivateMX.jks
approverPublicKSFile=Keystore/Mexico_PrepTool/KSpublicMX.jks
senderPrivateKSPwd=pwd123
senderPublicKSPwd=pwd123
receiverPrivateKSPwd=pwd123
receiverPublicKSPwd=pwd123
approverPrivateKSPwd=pwd123
approverPublicKSPwd=pwd123
senderPrivateKeyPwd=CAN2014
receiverPrivateKeyPwd=password
approverPrivateKeyPwd=MEX2014
senderPrivateKeyAlias=CANADAcert
senderPublicKeyAlias=CANADAcert
receiverPrivateKeyAlias=IRScert
receiverPublicKeyAlias=IRScert
approverPrivateKeyAlias=MEXICOcert
approverPublicKeyAlias=MEXICOcert
senderGiin=000000.00000.TA.124
receiverGiin=000000.00000.TA.840
approverGiin=000000.00000.TA.484
taxYear=2017
//senderPublicCertName=Certs/000000.00000.TA.124.crt
//approverPublicCertName=Certs/000000.00000.TA.484.crt
//receiverPublicCertName=Certs/000000.00000.TA.840.crt
verifyAllSignature=true
//keepSignedXmlAfterSignAndCreatePkgFlag=true
//comment line
/*
block comment lines
*/
//output from a command is default input to next command
//sigXmlTransform=Inclusive|Exclusive
sigXmlTransform=Inclusive
//usage: signXml input=<xml> output=An<signed xml> sigKey=senderPrivateKey sigPublicCert=senderPublicCert
signXml input=Sample.000000.00000.TA.124_Payload.xml output=AnOutput.000000.00000.TA.124_Payload.signed.xml sigKey=senderPrivateKey sigPublicCert=senderPublicCert
sigXmlTransform=Exclusive
signXml input=Sample.000000.00000.TA.124_Payload.xml output=AnOutput.000000.00000.TA.124_Payload.signed.xml sigKey=senderPrivateKey sigPublicCert=senderPublicCert
//usage: wrapTextInXmlAndSign input=<txt> output=An<signed xml> sigKey=senderPrivateKey sigPublicCert=senderPublicCert
wrapTextInXmlAndSign input=Sample.txt output=AnOutput.txt.signed.xml sigKey=senderPrivateKey sigPublicCert=senderPublicCert
//usage: wrapBinaryInXmlAndSign input=<txt> output=An<signed xml> sigKey=senderPrivateKey sigPublicCert=senderPublicCert
wrapBinaryInXmlAndSign input=Sample.pdf output=AnOutput.pdf.signed.xml sigKey=senderPrivateKey sigPublicCert=senderPublicCert
//for large file use 'Streaming' based cmds
sigXmlTransform=Inclusive
//usage: signXmlStreaming input=<xml> output=An<signed xml> sigKey=senderPrivateKey sigPublicCert=senderPublicCert
signXmlStreaming input=Sample.000000.00000.TA.124_Payload.xml output=AnOutput.000000.00000.TA.124_Payload.signed.xml sigKey=senderPrivateKey sigPublicCert=senderPublicCert
sigXmlTransform=Exclusive
signXmlStreaming input=Sample.000000.00000.TA.124_Payload.xml output=AnOutput.000000.00000.TA.124_Payload.signed.xml sigKey=senderPrivateKey sigPublicCert=senderPublicCert
//usage: wrapTextInXmlAndSignStreaming input=<txt> output=<signed xml> sigKey=senderPrivateKey sigPublicCert=senderPublicCert
wrapTextInXmlAndSignStreaming input=Sample.txt output=AnOutput.txt.signed.xml sigKey=senderPrivateKey sigPublicCert=senderPublicCert
//usage: wrapBinaryInXmlAndSignStreaming input=<txt> output=<signed xml> sigKey=senderPrivateKey sigPublicCert=senderPublicCert
wrapBinaryInXmlAndSignStreaming input=Sample.pdf output=AnOutput.pdf.signed.xml sigKey=senderPrivateKey sigPublicCert=senderPublicCert
//usage: [input=<signed xml>] [sigPublicCert=senderPublicCert]
verifySignature input=Sample.000000.00000.TA.124_Payload.signed.xml sigPublicCert=senderPublicCert
//verifySignature - for large file use 'Streaming' based cmds
//usage: verifySignatureStreaming [input=<signed xml>] [sigPublicCert=senderPublicCert]
verifySignatureStreaming input=Sample.000000.00000.TA.124_Payload.signed.xml sigPublicCert=senderPublicCert
//usage: createBinaryFromSignedBase64Binary [input=<signed xml base64 encoded binary>] output=<binary output>
createBinaryFromSignedBase64Binary input=AnOutput.pdf.signed.xml output=AnOutput.pdf
//for all packaging commands
//setMetadata email, fileRevisionId and origTransId
//usage: setMetadataInfo email=<email> [fileRevisionId=true|false] [origTransId=<origTransId>]
setMetadataInfo [email protected] fileRevisionId=true origTransId=origTransId0
//usage: createPkgWithApprover [input=<signed xml>] [fileFormatCd=XML|TXT|PDF|JPG|RTF - default XML] [binaryEncodingSchemeCd=NONE|BASE64 - default NONE] [fatcaEntCommCd=NTF|RPT|CAR|REG - default RPT]
createPkgWithApprover input=Sample.000000.00000.TA.124_Payload.signed.xml
//usage: signAndCreatePkg [input=<xml>] [fatcaEntCommCd=NTF|RPT|CAR|REG - default RPT]
sigXmlTransform=Inclusive
signAndCreatePkg input=Sample.000000.00000.TA.124_Payload.xml fatcaEntCommCd=RPT
//usage: signAndCreatePkgStreaming [input=<xml>] [fatcaEntCommCd=NTF|RPT|CAR|REG - default RPT]
sigXmlTransform=Inclusive
signAndCreatePkgStreaming input=Sample.000000.00000.TA.124_Payload.xml
//usage: signAndCreatePkgWithApprover [input=<xml>] [fatcaEntCommCd=NTF|RPT|CAR|REG - default RPT]
sigXmlTransform=Inclusive
signAndCreatePkgWithApprover input=Sample.000000.00000.TA.124_Payload.xml
//usage: signAndCreatePkgWithApproverStreaming [input=<xml>] [fatcaEntCommCd=NTF|RPT|CAR|REG - default RPT]
sigXmlTransform=Inclusive
signAndCreatePkgWithApproverStreaming input=Sample.000000.00000.TA.124_Payload.xml
//usage: signBinaryAndCreatePkg [input=<binary>] [fileFormat=PDF|RTF|JPG] [fatcaEntCommCd=NTF|RPT|CAR|REG - default RPT]
signBinaryAndCreatePkg input=Sample.pdf fileFormat=PDF
//usage: signBinaryAndCreatePkgStreaming [input=<binary>] [fileFormat=PDF|RTF|JPG] [fatcaEntCommCd=NTF|RPT|CAR|REG - default RPT]
signBinaryAndCreatePkgStreaming input=Sample.pdf fileFormat=PDF
//usage: signTextAndCreatePkg [input=<txt>] [fatcaEntCommCd=NTF|RPT|CAR|REG - default RPT]
signTextAndCreatePkg input=Sample.txt
//usage: signTextAndCreatePkgStreaming [input=<txt>] [fatcaEntCommCd=NTF|RPT|CAR|REG - default RPT]
signTextAndCreatePkgStreaming input=Sample.txt
//usage: unpack [input=<ides package>]
unpack input=Sample_000000.00000.TA.124.zip
//usage: unpackForApprover [input=<ides package built with approver>]
unpackForApprover input=Sample_000000.00000.TA.124.zip
//stop jvm
stop