Get a Let's Encrypt certificate via Certificate Manager

Request a certificate for a domain and its wildcard, then check the status; it is issued only after DNS or HTTP validation.

yc certificate-manager certificate request --name <name> --domains <host>,*.<host> && yc certificate-manager certificate list --format json | jq -r '.[] | "\(.name)\t\(.status)\t\(.not_after)"'

tool
yc32 commands
tags
yctlssecurity

More yc commands

  • yc config set folder-id <id> && yc config list

    Set the default folder-id for the active profile and check it with config list.

  • yc config profile create prod && yc config profile activate prod

    Keep credentials separate for each environment; in CI, use yc --profile prod or YC_PROFILE.

  • export YC_TOKEN=$(yc iam create-token)

    Create an IAM token for the current profile (valid for about 12 hours) and pass it to the API or Terraform via YC_TOKEN.

  • yc iam service-account create --name sa-ci --description 'CI deployer'

    Create a service account for pipelines; grant it only the roles it needs in a separate step.

  • yc iam key create --service-account-name sa-ci --output key.json

    Save a JSON authorized key for non-interactive login; rotate it and keep it in a secret store.

all 32 yc commands