@@ -121,14 +121,18 @@ Key and label can be safely stored in a password manager.
121121
122122### Encryption with Smart ID
123123
124+ Current encryption/decryption implementation of cdoc2 container with Smart ID supports only Estonian
125+ personal ID codes.
126+
124127```
125128java -jar target/cdoc2-cli-*.jar create --smart-id=38001085718 -f /tmp/smartid.cdoc README.md
126129```
127130
128131Multiple ID codes are allowed to be sent for encryption:
129132
130133```
131- java -jar target/cdoc2-cli-*.jar create -sid=38001085718 -sid=47101010033 -f /tmp/smartid.cdoc README.md
134+ java -jar target/cdoc2-cli-*.jar create -sid=38001085718 -sid=47101010033 \
135+ -f /tmp/smartid.cdoc README.md
132136```
133137
134138Key shares or Smart-ID properties can be sent externally by adding following options (the same
@@ -143,14 +147,18 @@ and/or
143147
144148### Encryption with Mobile ID
145149
150+ Current encryption/decryption implementation of cdoc2 container with Mobile ID supports only
151+ Estonian personal ID codes.
152+
146153```
147154java -jar target/cdoc2-cli-*.jar create --mobile-id=51307149560 -f /tmp/mobileid.cdoc README.md
148155```
149156
150157Multiple ID codes are allowed to be sent for encryption:
151158
152159```
153- java -jar target/cdoc2-cli-*.jar create -mid=51307149560 -mid=60001017869 -f /tmp/mobileid.cdoc README.md
160+ java -jar target/cdoc2-cli-*.jar create -mid=51307149560 -mid=60001017869 \
161+ -f /tmp/mobileid.cdoc README.md
154162```
155163
156164Key shares or Mobile-ID properties can be sent externally by adding following options (the same
@@ -173,16 +181,17 @@ To decrypt:
173181java -jar target/cdoc2-cli-*.jar decrypt --file /tmp/mydoc.cdoc -k keys/bob.pem --output /tmp
174182```
175183
176- or with Smart-ID:
184+ or with Smart-ID for Estonian personal ID code :
177185
178186```
179187java -jar target/cdoc2-cli-*.jar decrypt -sid=38001085718 -f /tmp/smartid.cdoc --output /tmp
180188```
181189
182- or with Mobile-ID:
190+ or with Mobile-ID for Estonian personal ID code and Estonian phone number with country code ` +372 ` :
183191
184192```
185- java -jar target/cdoc2-cli-*.jar decrypt -mid=51307149560 -mid-phone=+37269930366 -f /tmp/mobileid.cdoc --output /tmp
193+ java -jar target/cdoc2-cli-*.jar decrypt -mid=51307149560 -mid-phone=+37269930366 \
194+ -f /tmp/mobileid.cdoc --output /tmp
186195```
187196
188197### Decrypting with server scenario
0 commit comments