Skip to content

Commit

Permalink
Fix key-set generation instructions for MongoDB 6+
Browse files Browse the repository at this point in the history
DeprecationWarning: Collection.remove() is deprecated. Use deleteOne, deleteMany, findOneAndDelete, or bulkWrite.
  • Loading branch information
tvdijen authored Nov 2, 2023
1 parent 289c78c commit 428001c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ https://oidcng.test2.surfconext.nl/oidc/generate-secret-key-set
```
If you have started the application before adding the new keyset, you have to remove the existing signing and symmetric keys from the mongo database. Run these two commands on the mongo prompt:
```
db.symmetric_keys.remove({})
db.signing_keys.remove({})
db.symmetric_keys.deleteMany({})
db.signing_keys.deleteMany({})
```
You can also use this Java binary to generate a keyset to use before starting oidcng [https://build.openconext.org/repository/public/releases/org/openconext/crypto/1.0.0/crypto-1.0.0-shaded.jar](https://build.openconext.org/repository/public/releases/org/openconext/crypto/1.0.0/crypto-1.0.0-shaded.jar)

Expand Down

0 comments on commit 428001c

Please sign in to comment.