1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-21 20:40:05 +00:00

Updated CNC setup (markdown)

cpunk 2022-09-20 01:08:53 -05:00
parent 21b4b1a065
commit b1c25809fa

@ -1,20 +1,4 @@
While testing, sometimes it's nice to try it in a more 'real' environment (or you're using this project for red-teaming). Before deploying the default LaikaCNC target to a public-facing VPS, we'll need to make some changes.
## Generating a keypair
Generate a keypair using the `./bin/genKey` binary. Just run it like:
```sh
$ ./bin/genKey
```
> Make sure you've previously [compiled the project](Compiling)
These keypairs will then need to be passed back to cmake, you'll need to re-build the whole target using these keys. This looks something like:
```sh
$ rm -rf bin build &&\
cmake -B build -DLAIKA_PUBKEY=997d026d1c65deb6c30468525132be4ea44116d6f194c142347b67ee73d18814 -DLAIKA_PRIVKEY=1dbd33962f1e170d1e745c6d3e19175049b5616822fac2fa3535d7477957a841 -DCMAKE_BUILD_TYPE=MinSizeRel &&\
cmake --build build
```
## Update the keys in server.ini & shell.ini
- [generate a build with a keypair](Keypairs)
- update the keys in server.ini & shell.ini