| commit | a68a8045387e60771e69c53eaa1e4283eab517e4 | [log] [tgz] | 
|---|---|---|
| author | James Feist <james.feist@linux.intel.com> | Wed Apr 15 15:46:44 2020 -0700 | 
| committer | James Feist <james.feist@linux.intel.com> | Fri Apr 17 11:05:51 2020 -0700 | 
| tree | 31e7a4534cdadf42d0686687efe698c5e722e1ce | |
| parent | 7af9151495a18c805b45764b4bba6302ec214efb [diff] | 
Use CPRNG for session secrets generation std::random_device is not a cryptographically secure algorithm. Switch to RAND_bytes instead. Tested: Login and logout works as expected Change-Id: If24fa6c3a0652c011bc50ae611b180f342d68433 Signed-off-by: James Feist <james.feist@linux.intel.com>
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D flags that correspond to options in bmcweb/CMakeLists.txt and then compiling.  For example, cmake -DBMCWEB_ENABLE_KVM=NO ... followed by make.  The option names become C++ preprocessor symbols that control which code is compiled into the program.
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server.  The keys are generated by the secp384r1 algorithm.  The certificate
C=US, O=OpenBMC, CN=testhost,SHA-256 algorithm.