Documentation ¶
Index ¶
- Variables
- func NewSignedEd25519Keypair(caPrivateKey *ed25519.PrivateKey, subject string, certType uint32) (*ed25519.PrivateKey, *ssh.Certificate, error)
- func NewSignedRSAKeypair(caPrivateKey *rsa.PrivateKey, subject string, certType uint32) (*rsa.PrivateKey, *ssh.Certificate, error)
- func Serve(rdb *gorm.DB)
- type CACertificateResponse
- type SignedKeyResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var DistFiles embed.FS
View Source
var Templates embed.FS
Functions ¶
func NewSignedEd25519Keypair ¶
func NewSignedEd25519Keypair(caPrivateKey *ed25519.PrivateKey, subject string, certType uint32) (*ed25519.PrivateKey, *ssh.Certificate, error)
func NewSignedRSAKeypair ¶
func NewSignedRSAKeypair(caPrivateKey *rsa.PrivateKey, subject string, certType uint32) (*rsa.PrivateKey, *ssh.Certificate, error)
Types ¶
type CACertificateResponse ¶
type CACertificateResponse struct {
PublicKey string `json:"public_key"`
}
type SignedKeyResponse ¶
Click to show internal directories.
Click to hide internal directories.