More attempt at getting this shit to work
All checks were successful
/ docker (push) Successful in 4m9s
All checks were successful
/ docker (push) Successful in 4m9s
This commit is contained in:
parent
06e6d457da
commit
59dd8d82cf
10 changed files with 158 additions and 118 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue