mirror of
https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
synced 2025-08-26 22:47:00 +08:00
Compare commits
1 Commits
890777a2d0
...
89cedfae3f
Author | SHA1 | Date | |
---|---|---|---|
|
89cedfae3f |
@ -80,13 +80,13 @@ base64-content...
|
|||||||
## DB Password - `/etc/dls/config/dls_db_password.bin`
|
## DB Password - `/etc/dls/config/dls_db_password.bin`
|
||||||
|
|
||||||
```
|
```
|
||||||
# docker cp -a <container-id>:/etc/dls/config/dls_db_password.bin /tmp/dls_db_password.bin
|
|
||||||
base64-content...
|
base64-content...
|
||||||
```
|
```
|
||||||
|
|
||||||
**Decrypt database password**
|
**Decrypt database password**
|
||||||
|
|
||||||
```
|
```
|
||||||
|
cd /var/lib/docker/volumes/configurations/_data
|
||||||
cat dls_db_password.bin | base64 -d > dls_db_password.bin.raw
|
cat dls_db_password.bin | base64 -d > dls_db_password.bin.raw
|
||||||
openssl rsautl -decrypt -inkey /tmp/private-key.pem -in dls_db_password.bin.raw
|
openssl rsautl -decrypt -inkey /tmp/private-key.pem -in dls_db_password.bin.raw
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user