mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 07:25:51 -04:00
write CA key to file in joinclient
This commit is contained in:
parent
5a357eb454
commit
60c3ec4b01
@ -270,6 +270,10 @@ func (c *JoinClient) startNodeAndJoin(ticket *joinproto.IssueJoinTicketResponse,
|
||||
if err := c.fileHandler.Write(certificate.KeyFilename, kubeletKey, file.OptMkdirAll); err != nil {
|
||||
return fmt.Errorf("writing kubelet key: %w", err)
|
||||
}
|
||||
// TODO(miampf): Make path a constant
|
||||
if err := c.fileHandler.Write("/run/ssh/ssh_ca.pub", ticket.EmergencyCaKey, file.OptMkdirAll); err != nil {
|
||||
return fmt.Errorf("writing ca key: %w", err)
|
||||
}
|
||||
|
||||
state := nodestate.NodeState{
|
||||
Role: c.role,
|
||||
|
Loading…
x
Reference in New Issue
Block a user