Add next steps for linked ca.

pull/633/head
Mariano Cano 3 years ago
parent 47a30f1524
commit 56bb3eb6e1

@ -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 youre 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 youre 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://bit.ly/step-discord\033[0m.")
ui.Println(" \033[1mhttps://github.com/smallstep/certificates/discussions\033[0m and our Discord")
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,11 +807,13 @@ 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)
ui.Println() if p.options.deploymentType != LinkedDeployment {
if p.casOptions.Is(apiv1.SoftCAS) { ui.Println()
ui.Println("Your PKI is ready to go. To generate certificates for individual services see 'step help ca'.") if p.casOptions.Is(apiv1.SoftCAS) {
} else { ui.Println("Your PKI 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'.") } else {
ui.Println("Your registration authority is ready to go. To generate certificates for individual services see 'step help ca'.")
}
} }
} }

Loading…
Cancel
Save