MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / handleCertificateGeneration

Function handleCertificateGeneration

sshgen/sshgen.go:79–86  ·  view source on GitHub ↗

handleCertificateGeneration takes a JWT and uses it build a signPayload to send to the Sign endpoint with the public key from the keypair it generated

(token, fullName string)

Source from the content-addressed store, hash-verified

77// handleCertificateGeneration takes a JWT and uses it build a signPayload
78// to send to the Sign endpoint with the public key from the keypair it generated
79func handleCertificateGeneration(token, fullName string) (string, error) {
80 pub, err := generateKeyPair(fullName)
81 if err != nil {
82 return "", err
83 }
84
85 return SignCert(token, string(pub))
86}
87
88func SignCert(token, pubKey string) (string, error) {
89 if token == "" {

Callers 1

Calls 2

generateKeyPairFunction · 0.85
SignCertFunction · 0.85

Tested by

no test coverage detected