mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 07:25:51 -04:00
fix: please openssh by using their format, specifically
This commit is contained in:
parent
77e3f90155
commit
9b46479410
@ -88,11 +88,10 @@ func GenerateSignedSSHHostKey(principal string, ca ssh.Signer) (*pem.Block, *ssh
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
hostKeySSH, err := x509.MarshalPKCS8PrivateKey(hostKey)
|
||||
pemHostKey, err := ssh.MarshalPrivateKey(hostKey, "")
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
pemHostKey := &pem.Block{Type: "PRIVATE KEY", Bytes: hostKeySSH}
|
||||
|
||||
certificate := ssh.Certificate{
|
||||
CertType: ssh.HostCert,
|
||||
|
Loading…
x
Reference in New Issue
Block a user