mudler
18d63f3a8c
Enhance error return from AuthRequest
...
Signed-off-by: mudler <mudler@c3os.io>
2023-01-18 16:08:16 +01:00
mudler
f0fe82f348
Refactor logic, split such as can be re-used for posting data too
2023-01-18 15:46:03 +01:00
Ettore Di Giacinto
cc421fc8c3
Do not invoke logging into Get()
2022-10-13 14:55:23 +00:00
Ettore Di Giacinto
fef86f595b
Allow to pass additional headers on Get()
2022-10-07 21:44:36 +00:00
Francesco Giudici
d273b298fc
tpm: add single step functions to perform attestation
...
Split generation of the token based on the AK and the EK and the
client authentication.
In particular, make the new funcions agnostic on the channel making
use of a io.ReadWriter interface.
This way, the library could be used for the TPM attestation related
tasks, with no assumptions on the channel or the (extra) data not related
to the TPM attestation exchanged between the client and the server.
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2022-08-23 09:56:03 +02:00
Francesco Giudici
30058b554b
Include more info in the error msg on Dial() error
...
Include the HTTP Status CODE: it could help in diagnosing the
connection failure.
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2022-08-10 18:01:12 +02:00
Ettore Di Giacinto
5842702dd4
Allow to append to system CA
...
Fixes #1
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-05-12 11:59:26 +02:00
Ettore Di Giacinto
fb83f16609
Import other required functions
...
Also add a test for Get with the Challenges logic associated too
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-17 12:33:01 +01:00
Ettore Di Giacinto
e5997ada4c
Fixup tests, add testing pipelines and small refactors
...
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-17 12:33:01 +01:00
Ettore Di Giacinto
1ab3e10e4d
Add backends and simulated TPM device
...
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-17 12:33:01 +01:00
Ettore Di Giacinto
c2203f40dd
Import from rancherd
...
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-16 10:53:10 +01:00