Add next steps for linked ca.
This commit is contained in:
parent
47a30f1524
commit
56bb3eb6e1
1 changed files with 23 additions and 16 deletions
27
pki/pki.go
27
pki/pki.go
|
@ -10,11 +10,9 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"encoding/pem"
|
"encoding/pem"
|
||||||
"fmt"
|
"fmt"
|
||||||
"html"
|
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -576,15 +574,22 @@ func (p *PKI) WriteFiles() error {
|
||||||
|
|
||||||
func (p *PKI) askFeedback() {
|
func (p *PKI) askFeedback() {
|
||||||
ui.Println()
|
ui.Println()
|
||||||
ui.Printf("\033[1mFEEDBACK\033[0m %s %s\n",
|
ui.Println("\033[1mFEEDBACK\033[0m 😍 🍻")
|
||||||
html.UnescapeString("&#"+strconv.Itoa(128525)+";"),
|
ui.Println(" The \033[1mstep\033[0m utility is not instrumented for usage statistics. It does not phone")
|
||||||
html.UnescapeString("&#"+strconv.Itoa(127867)+";"))
|
ui.Println(" home. But your feedback is extremely valuable. Any information you can provide")
|
||||||
ui.Println(" The \033[1mstep\033[0m utility is not instrumented for usage statistics. It does not")
|
ui.Println(" regarding how you’re using `step` helps. Please send us a sentence or two,")
|
||||||
ui.Println(" phone home. But your feedback is extremely valuable. Any information you")
|
ui.Println(" good or bad at \033[1mfeedback@smallstep.com\033[0m or join GitHub Discussions")
|
||||||
ui.Println(" can provide regarding how you’re using `step` helps. Please send us a")
|
ui.Println(" \033[1mhttps://github.com/smallstep/certificates/discussions\033[0m and our Discord ")
|
||||||
ui.Println(" sentence or two, good or bad: \033[1mfeedback@smallstep.com\033[0m or join")
|
|
||||||
ui.Println(" \033[1mhttps://github.com/smallstep/certificates/discussions\033[0m and our Discord")
|
|
||||||
ui.Println(" \033[1mhttps://bit.ly/step-discord\033[0m.")
|
ui.Println(" \033[1mhttps://bit.ly/step-discord\033[0m.")
|
||||||
|
|
||||||
|
if p.options.deploymentType == LinkedDeployment {
|
||||||
|
ui.Println()
|
||||||
|
ui.Println("\033[1mNEXT STEPS\033[0m")
|
||||||
|
ui.Println(" 1. Log in or create a Certificate Manager account at \033[1mhttps://u.step.sm/linked\033[0m")
|
||||||
|
ui.Println(" 2. Add a new authority with \"linked\" type")
|
||||||
|
ui.Println(" 3. Follow instructions in browser to start `step-ca` using the `--token` flag")
|
||||||
|
ui.Println()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PKI) tellPKI() {
|
func (p *PKI) tellPKI() {
|
||||||
|
@ -802,6 +807,7 @@ func (p *PKI) Save(opt ...ConfigOption) error {
|
||||||
|
|
||||||
ui.PrintSelected("Default configuration", p.defaults)
|
ui.PrintSelected("Default configuration", p.defaults)
|
||||||
ui.PrintSelected("Certificate Authority configuration", p.config)
|
ui.PrintSelected("Certificate Authority configuration", p.config)
|
||||||
|
if p.options.deploymentType != LinkedDeployment {
|
||||||
ui.Println()
|
ui.Println()
|
||||||
if p.casOptions.Is(apiv1.SoftCAS) {
|
if p.casOptions.Is(apiv1.SoftCAS) {
|
||||||
ui.Println("Your PKI is ready to go. To generate certificates for individual services see 'step help ca'.")
|
ui.Println("Your PKI is ready to go. To generate certificates for individual services see 'step help ca'.")
|
||||||
|
@ -809,6 +815,7 @@ func (p *PKI) Save(opt ...ConfigOption) error {
|
||||||
ui.Println("Your registration authority is ready to go. To generate certificates for individual services see 'step help ca'.")
|
ui.Println("Your registration authority is ready to go. To generate certificates for individual services see 'step help ca'.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
p.askFeedback()
|
p.askFeedback()
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue