Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
© 2022 Yandex.Cloud LLC
Yandex Certificate Manager
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Let's Encrypt® certificate
      • Create a certificate
      • Get the contents of a certificate
      • Domain rights check procedure
      • Renew a certificate
      • Edit a certificate
      • Delete a certificate
    • User certificate
      • Create a certificate
      • Get the contents of a certificate
      • Renew a certificate
      • Edit a certificate
      • Delete a certificate
    • Domain
      • Create a domain
      • Renew a domain certificate
      • Update a domain
      • Delete a domain
    • Backups
    • Adding alerts for certificates
  • Concepts
    • Overview
    • Let's Encrypt® certificate
    • User certificate
    • Check rights for domain
    • Integration with Yandex Cloud services
    • Quotas and limits
    • Domain
      • Overview
      • Integration with Yandex Cloud services
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • CertificateContentService
      • CertificateService
      • OperationService
    • REST
      • Overview
      • CertificateContent
        • Overview
        • get
      • Certificate
        • Overview
        • create
        • delete
        • get
        • list
        • listAccessBindings
        • listOperations
        • listVersions
        • requestNew
        • setAccessBindings
        • update
        • updateAccessBindings
  • Questions and answers
  1. Step-by-step instructions
  2. User certificate
  3. Get the contents of a certificate

Get the contents of a certificate

Written by
Yandex Cloud

    You can upload a certificate chain and a private key to use on your own, for example, when configuring a web server on a VM.

    To get the contents of a certificate:

    CLI
    API

    The command displays a certificate chain and private key and saves their contents to the --chain and --key files, respectively.

    • --id: Certificate ID, make sure you set either the --id or --name flag.
    • --name: Name of the certificate, make sure you set either the --id or --name flag.
    • --chain: (Optional) File to save the certificate chain to in PEM format.
    • --key: (Optional) File to save the private key to in PEM format.
    yc certificate-manager certificate content \
      --id fpqcsmn76v82fi446ri7 \
      --chain certificate_full_chain.pem \
      --key private_key.pem
    

    To get the certificate contents, use the getContent method for the Certificate resource.

    Note

    To view the certificate contents, assign the certificate-manager.certificates.downloader role to the service account.

    Was the article helpful?

    Language / Region
    © 2022 Yandex.Cloud LLC