Skip to content

Commit

Permalink
Merge pull request #123 from skalenetwork/enhancement/SKALE-2844-upda…
Browse files Browse the repository at this point in the history
…te-docs

SKALE-2844 update documentation
  • Loading branch information
olehnikolaiev authored Jul 13, 2020
2 parents 7509141 + 7d7b42f commit 7fa76e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SEKManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void gen_SEK() {

cout << "ATTENTION! YOUR BACKUP KEY WILL BE WRITTEN INTO backup_key.txt.\n" <<
"PLEASE COPY IT TO THE SAFE PLACE AND THEN DELETE THE FILE MANUALLY BY RUNNING THE FOLLOWING COMMAND:\n" <<
"`sudo apt-get install secure-delete && srm -vz backup_key.txt`" << endl;
"`docker exec -it <SGX_CONTAINER_NAME> bash && apt-get install secure-delete && srm -vz backup_key.txt`" << endl;
sek_file << SEK;

if (!autoconfirm) {
Expand Down
4 changes: 2 additions & 2 deletions docs/backup-procedure.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

When SGXWallet is initialized, the server will print the backup key.
**This key must be securely recorded and stored.**
Be sure to store this key in a safe place, then securely remove it with the following command:
Be sure to store this key in a safe place, then go into a docker container and securely remove it with the following command:

```bash
sudo apt-get install secure-delete && srm -vz backup_key.txt
docker exec -it <SGX_CONTAINER_NAME> bash && apt-get install secure-delete && srm -vz backup_key.txt
```

Master-Slave replication is recommended to support the SGXWallet backup strategy. Below are general instructions for a basic backup and recovery process.
Expand Down

0 comments on commit 7fa76e2

Please sign in to comment.