mirror of
https://github.com/smallstep/certificates.git
synced 2024-10-31 03:20:16 +00:00
Closes #1248
This commit is contained in:
parent
972bfb9689
commit
4b7fa2524d
@ -213,6 +213,9 @@ func (c *AuthConfig) Validate(audiences provisioner.Audiences) error {
|
|||||||
func LoadConfiguration(filename string) (*Config, error) {
|
func LoadConfiguration(filename string) (*Config, error) {
|
||||||
f, err := os.Open(filename)
|
f, err := os.Open(filename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
fmt.Println("step-ca can't find or open the configuration file for your CA.")
|
||||||
|
fmt.Println("You may need to create a CA first by running `step ca init`.")
|
||||||
|
fmt.Println("Documentation: https://u.step.sm/docs/ca\n")
|
||||||
return nil, errors.Wrapf(err, "error opening %s", filename)
|
return nil, errors.Wrapf(err, "error opening %s", filename)
|
||||||
}
|
}
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user