commit | e6604b116afef4cd603956941e299e7bcda4351a | [log] [tgz] |
---|---|---|
author | Iwona Klimaszewska <iwona.klimaszewska@intel.com> | Wed Oct 23 00:52:55 2019 +0200 |
committer | Iwona Klimaszewska <iwona.klimaszewska@intel.com> | Thu Nov 21 13:35:35 2019 +0000 |
tree | 231ee4aba4dcc2e468667644d46f74e3b87da1e2 | |
parent | fd4859a7fba462b9762ac948702a1e768c66848f [diff] |
Fix extracting certificate id std::strtol() expects null-terminated string. This means that passing string_view.data() to it may cause undefined behaviour. Let's fix it by using boost::convert instead. Tested: Manually by sending valid requests and looking for empty responses. Change-Id: I319277551b5e85586783afdc8c86e4a7d8db876e Signed-off-by: Iwona Klimaszewska <iwona.klimaszewska@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 prime256v1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.