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. Create a certificate

Create a user certificate

Written by
Yandex.Cloud

    To create a user certificate:

    Management console
    CLI
    API
    1. In the management console, select the folder to create your certificate in.
    2. In the list of services, select Certificate Manager.
    3. Click Add certificate.
    4. In the menu that opens, select User certificate.
    5. In the window that opens, enter the name of the certificate in the Name field.
    6. (optional) In the Description field, enter a description for the certificate.
    7. In the Certificate field, click Add certificate.
      1. Select how to add your certificate: File or Text.
      2. Click Add.
    8. In the Intermediate certificate chain field, click Add chain.
      1. Select how to add your certificate: File or Text.
      2. Click Add.
    9. In the Private key field, click Add private key.
      1. Select how to add your certificate: File or Text.
      2. Click Add.
    10. Click Create.

    If you don't have the Yandex Cloud command line interface yet, install and initialize it.

    The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

    1. View a description of the command:

      yc certificate-manager certificate create --help
      
    2. Run the command:

      yc certificate-manager certificate create \
        --name mycert \
        --chain mycert.pem \
        --key mykey.pem
      

      Command parameters:

      • --name: Certificate name.
      • --chain: Path to the certificate chain file.
      • --key: Path to the file of the certificate private key.

      Command results:

      id: fpqmg47avvimp7rvmp30
      folder_id: b1g7gvsi89m34qmcm3ke
      created_at: "2020-09-15T06:54:44.916325Z"
      name: mycert
      type: IMPORTED
      domains:
      - example.com
      status: ISSUED
      issuer: CN=example.com
      subject: CN=example.com
      serial: c32fd55592a376635fa53d9aea677caae6bf08f
      updated_at: "2020-09-15T06:54:44.916325Z"
      issued_at: "2020-09-15T06:54:44.916325Z"
      not_after: "2021-09-15T06:48:26Z"
      not_before: "2020-09-15T06:48:26Z"
      

    To create a certificate, use the create method for the Certificate resource.

    A new certificate with the Issued status appears in the certificate list.

    Was the article helpful?

    Language / Region
    © 2022 Yandex.Cloud LLC