func (s *SSHRekeyRequest) Validate() error {
	switch {
	case s.OTT == "":
		return errors.New("missing or empty ott")
	case len(s.PublicKey) == 0:
		return errors.New("missing or empty public key")
	default:
		return nil
	}
}
Validate validates the SSHSignRekey.
package api
import (
	"net/http"
	"time"
	"github.com/pkg/errors"
	"github.com/smallstep/certificates/authority/provisioner"
	"github.com/smallstep/certificates/errs"
	"golang.org/x/crypto/ssh"
)
type SSHRekeyRequest struct {
	OTT       string `json:"ott"`
	PublicKey []byte `json:"publicKey"`  
}