Create keys when running simulation

This commit is contained in:
Markus Pilman 2022-07-07 11:24:45 -06:00
parent 56541167c2
commit 5a880fd15e
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include <memory>
#include <string>
#include "flow/MkCert.h"
#include "fmt/format.h"
#include "fdbrpc/simulator.h"
#include "flow/Arena.h"
@ -2126,6 +2127,9 @@ public:
this,
"",
"");
// create a key pair for AuthZ testing
auto key = mkcert::makeEcP256();
authKeys.insert(std::make_pair(Standalone<StringRef>("DefaultKey"_sr), key));
g_network = net2 = newNet2(TLSConfig(), false, true);
g_network->addStopCallback(Net2FileSystem::stop);
Net2FileSystem::newFileSystem();