Skip to content

Commit 8214f36

Browse files
author
Olesja Aarma
committed
RM-4446: add mobile id encrypt to CLI
1 parent cbe44de commit 8214f36

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

cdoc2-cli/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,28 @@ and/or
141141
`-Dsmart-id.properties=config/smart-id/smart-id.properties`
142142

143143

144+
### Encryption with Mobile ID
145+
146+
```
147+
java -jar target/cdoc2-cli-*.jar create --mobile-id=51307149560 -f /tmp/mobileid.cdoc README.md
148+
```
149+
150+
Multiple ID codes are allowed to be sent for encryption:
151+
152+
```
153+
java -jar target/cdoc2-cli-*.jar create -mid=51307149560 -mid=60001017869 -f /tmp/mobileid.cdoc README.md
154+
```
155+
156+
Key shares or Mobile-ID properties can be sent externally by adding following options (the same
157+
for decryption):
158+
159+
`-Dkey-shares.properties=config/localhost/key-shares.properties`
160+
161+
and/or
162+
163+
`-Dmobile-id.properties=config/mobile-id/mobile-id.properties`
164+
165+
144166
### Decryption
145167
To decrypt:
146168
- CDOC2 file `/tmp/mydoc.cdoc`

cdoc2-lib/src/test/java/ee/cyber/cdoc2/MobileIdClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class MobileIdClientTest {
3030
private static final String OK_1_PHONE_NUMBER = "+37269930366";
3131

3232
// OK for "TEST of EID-SK 2016" certificate
33-
private static final String OK_2_IDENTITY_CODE = "51307149560";
34-
private static final String OK_2_PHONE_NUMBER = "+37269930366";
33+
private static final String OK_2_IDENTITY_CODE = "60001017869";
34+
private static final String OK_2_PHONE_NUMBER = "+37268000769";
3535

3636
private final MobileIdClient mobileIdClient;
3737

0 commit comments

Comments
 (0)