Skip to content

Commit

Permalink
Add documentation to new function
Browse files Browse the repository at this point in the history
  • Loading branch information
hunoz committed Oct 23, 2024
1 parent 39746ae commit a393e32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ca/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (p *Provisioner) Token(subject string, sans ...string) (string, error) {
return tok.SignedString(p.jwk.Algorithm, p.jwk.Key)
}

// RenewalToken generates a token for use with renewing certificates
func (p *Provisioner) RenewalToken(subject string, sans ...string) (string, error) {
oldAudience := p.audience
u := p.endpoint.ResolveReference(&url.URL{Path: "/1.0/renew"}).String()
Expand Down

0 comments on commit a393e32

Please sign in to comment.