More attempt at getting this shit to work
All checks were successful
/ docker (push) Successful in 4m9s

This commit is contained in:
Melody Becker 2025-04-14 17:00:11 +02:00
parent 06e6d457da
commit 59dd8d82cf
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
10 changed files with 158 additions and 118 deletions

View file

@ -194,7 +194,7 @@ func returnKeypair(w http.ResponseWriter, r *http.Request) {
hlog.FromRequest(r).Error().Err(err).Msg("Sanity check failed")
}
privKeyPem := pem.EncodeToMemory(&privKeyBlock)
pubKeyPen := []byte(shared.KeyBytesToPem(user.PublicKeyRsa))
pubKeyPen := []byte(shared.KeyBytesToPem(user.PublicKeyRsa, false))
err = shared.SanityCheckPemdRsaKeys(pubKeyPen, privKeyPem)
if err != nil {
hlog.FromRequest(r).Error().Err(err).Msg("Pem Sanity check failed")