Skip to content

Commit 7c38604

Browse files
committed
added paragraph to update certs
1 parent 346c014 commit 7c38604

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

handover/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,47 @@ This will fetch changes from POSSIBLE and merge them into your local develop bra
156156
The integration environment is completly managed in Flux. So everything you need, can be found within the [ionos-infrastructure](https://github.com/POSSIBLE-X/ionos-infrastructure) repository.
157157

158158

159+
#### Upgrading Certs
160+
161+
The certificates we use are all provisioned by the Let's Encrypt. We simply use the generated secrets.
162+
E.g. the did service is configured with the following
163+
```yaml
164+
args:
165+
- |
166+
apk add gettext
167+
export DBHOST=$(env |grep DIDWEB_DB_SERVICE_HOST|awk -F '=' '{print $2}')
168+
envsubst < /app/application-ionos.yaml> /app/application.yaml
169+
wget https://letsencrypt.org/certs/isrgrootx1.pem -O /certs/letsencryptroot.pem
170+
cat /certs/tls/tls.crt /certs/letsencryptroot.pem > /certs/cert.pem
171+
java -jar did-web-service.jar
172+
command:
173+
- /bin/sh
174+
- -c
175+
volumeMounts:
176+
- mountPath: /app/application-ionos.yaml
177+
name: config
178+
subPath: did-application.yaml
179+
- mountPath: /certs/tls
180+
name: certs
181+
envFrom:
182+
- secretRef:
183+
name: appuser.didweb-db.credentials.postgresql.acid.zalan.do
184+
env:
185+
- name: COMMONCERTPATH
186+
value: /certs/cert.pem
187+
...
188+
189+
volumes:
190+
- secret:
191+
secretName: did-web-ssl-certificate
192+
name: certs
193+
194+
```
195+
196+
This takes the did-web-ssl-certificate file and puts them under /certs/tls.
197+
As the services requires the whole cert chain, we retrieve that from letsencrypt.org,
198+
put it into a file and concat those files into /certs/cert.pem.
199+
159200
#### Participants
160201

161202
Under `apps/integration-environment/participants/overlays` you will find every participants configuration.

0 commit comments

Comments
 (0)