Skip to content

Commit bc26613

Browse files
committed
RM-4553: draft SID conf for ria-dev
1 parent bdcbb1f commit bc26613

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

cdoc2-cli/config/ria-dev/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,26 @@ java -jar target/cdoc2-cli-*.jar create --server=config/ria-dev/ria-dev_pkcs12.p
3434
```
3535
java -jar target/cdoc2-cli-*.jar decrypt --server=config/ria-dev/ria-dev_pkcs12.properties -p12 keys/cdoc2client.p12:passwd -f /tmp/ria_p12.cdoc -o /tmp
3636
```
37+
38+
### Encrypt for Smart-ID
39+
40+
```
41+
java -jar target/cdoc2-cli-*.jar create \
42+
-Dkey-shares.properties=config/ria-dev/key-shares.properties \
43+
-Dsmart-id.properties=config/smart-id/smart-id.properties \
44+
--smart-id=30303039914 \
45+
-f /tmp/SID_30303039914.cdoc2 \
46+
README.md
47+
```
48+
49+
### Decrypt with Smart-ID
50+
51+
```
52+
java -jar target/cdoc2-cli-*.jar decrypt \
53+
-Dkey-shares.properties=config/ria-dev/key-shares.properties \
54+
-Dsmart-id.properties=config/smart-id/smart-id.properties \
55+
--smart-id=30303039914 \
56+
-f /tmp/SID_30303039914.cdoc2 \
57+
-o /tmp
58+
```
59+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
key-shares.servers.urls=https://localhost:8442, https://localhost:8443
1+
key-shares.servers.urls=https://cdoc2-shares-01.dev.riaint.ee:8443, https://cdoc2-sharesexternal-01.dev.riaint.ee:8443
22
key-shares.servers.min_num=2
33
key-shares.algorithm=n-of-n
44

55
# trusted certificates by client
6-
cdoc2.key-shares.client.ssl.trust-store=config/ria-dev/clienttruststore.jks
6+
cdoc2.key-shares.client.ssl.trust-store=config/ria-dev/clienttruststore_ria-dev.jks
77
cdoc2.key-shares.client.ssl.trust-store.type=JKS
88
cdoc2.key-shares.client.ssl.trust-store-password=passwd

0 commit comments

Comments
 (0)