diff options
author | Francis Lavoie <[email protected]> | 2022-03-13 01:38:11 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-13 01:38:11 -0500 |
commit | a9c7e94a38e4f4719a5c1cf7f3e11e8cf427f04e (patch) | |
tree | ef09257fc3517682dfe60d20b48d860df7b5bde6 /modules/caddypki | |
parent | 3d616e8c6d65e5617f5a918d72fb1514c9c7144e (diff) | |
download | caddy-a9c7e94a38e4f4719a5c1cf7f3e11e8cf427f04e.tar.gz caddy-a9c7e94a38e4f4719a5c1cf7f3e11e8cf427f04e.zip |
chore: Comment fixes (#4634)
Diffstat (limited to 'modules/caddypki')
-rw-r--r-- | modules/caddypki/adminapi.go | 4 | ||||
-rw-r--r-- | modules/caddypki/command.go | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/caddypki/adminapi.go b/modules/caddypki/adminapi.go index a79e2d5c9..b4d269516 100644 --- a/modules/caddypki/adminapi.go +++ b/modules/caddypki/adminapi.go @@ -93,7 +93,7 @@ func (a *adminAPI) handleAPIEndpoints(w http.ResponseWriter, r *http.Request) er } } -// handleCAInfo returns cinformation about a particular +// handleCAInfo returns information about a particular // CA by its ID. If the CA ID is the default, then the CA will be // provisioned if it has not already been. Other CA IDs will return an // error if they have not been previously provisioned. @@ -143,7 +143,7 @@ func (a *adminAPI) handleCAInfo(w http.ResponseWriter, r *http.Request) error { return nil } -// handleCACerts returns cinformation about a particular +// handleCACerts returns the certificate chain for a particular // CA by its ID. If the CA ID is the default, then the CA will be // provisioned if it has not already been. Other CA IDs will return an // error if they have not been previously provisioned. diff --git a/modules/caddypki/command.go b/modules/caddypki/command.go index 4744c68e6..9b64c6136 100644 --- a/modules/caddypki/command.go +++ b/modules/caddypki/command.go @@ -49,8 +49,8 @@ By default, this command installs the root certificate for Caddy's default CA (i.e. 'local'). You may specify the ID of another CA with the --ca flag. -Also, this command will attempt to connect to the Caddy's admin API -running at '` + caddy.DefaultAdminListen + `' to fetch the root certificate. You may +This command will attempt to connect to Caddy's admin API running at +'` + caddy.DefaultAdminListen + `' to fetch the root certificate. You may explicitly specify the --address, or use the --config flag to load the admin address from your config, if not using the default.`, Flags: func() *flag.FlagSet { @@ -216,7 +216,7 @@ func rootCertFromAdmin(adminAddr string, caID string) (*x509.Certificate, error) } defer resp.Body.Close() - // Decode the resposne + // Decode the response caInfo := new(caInfo) err = json.NewDecoder(resp.Body).Decode(caInfo) if err != nil { |