전역 자체 관리형 인증서 배포

이 튜토리얼에서는 인증서 관리자를 사용하여 전역 자체 관리형 인증서를 배포하는 방법을 보여줍니다.

다음 부하 분산기에서 전역 자체 관리형 인증서를 지원합니다.

  • 전역 외부 애플리케이션 부하 분산기
  • 기존 애플리케이션 부하 분산기
  • 전역 외부 프록시 네트워크 부하 분산기
  • 기존 프록시 네트워크 부하 분산기

리전 또는 리전 간 부하 분산기에 배포하려면 다음을 참고하세요.

목표

이 튜토리얼에서는 다음 작업을 완료하는 방법을 보여줍니다.

  • 인증서 관리자에 자체 관리형 인증서 업로드
  • 대상 HTTPS 프록시를 사용하여 지원되는 부하 분산기에 인증서를 배포합니다.

시작하기 전에

  1. Google Cloud 계정에 로그인합니다. Google Cloud를 처음 사용하는 경우 계정을 만들고 Google 제품의 실제 성능을 평가해 보세요. 신규 고객에게는 워크로드를 실행, 테스트, 배포하는 데 사용할 수 있는 $300의 무료 크레딧이 제공됩니다.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. Enable the Compute Engine, Certificate Manager APIs.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.

    Enable the APIs

  5. Google Cloud CLI를 설치합니다.

  6. 외부 ID 공급업체(IdP)를 사용하는 경우 먼저 제휴 ID로 gcloud CLI에 로그인해야 합니다.

  7. gcloud CLI를 초기화하려면, 다음 명령어를 실행합니다.

    gcloud init
  8. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  9. Verify that billing is enabled for your Google Cloud project.

  10. Enable the Compute Engine, Certificate Manager APIs.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.

    Enable the APIs

  11. Google Cloud CLI를 설치합니다.

  12. 외부 ID 공급업체(IdP)를 사용하는 경우 먼저 제휴 ID로 gcloud CLI에 로그인해야 합니다.

  13. gcloud CLI를 초기화하려면, 다음 명령어를 실행합니다.

    gcloud init

필요한 역할

이 튜토리얼의 태스크를 완료하려면 다음 역할이 부여되었는지 확인하세요.

  • 인증서 관리자 소유자(roles/certificatemanager.owner)

    인증서 관리자 리소스를 만들고 관리하는 데 필요합니다.

  • Compute 부하 분산기 관리자 (roles/compute.loadBalancerAdmin) 또는 Compute 네트워크 관리자 (roles/compute.networkAdmin)

    HTTPS 대상 프록시를 만들고 관리하는 데 필요합니다.

자세한 내용은 다음을 참조하세요.

부하 분산기 만들기

이 튜토리얼에서는 부하 분산기의 백엔드, 상태 점검, 백엔드 서비스, URL 맵을 이미 만들고 구성했다고 가정합니다. 외부 애플리케이션 부하 분산기를 만든 경우 이 튜토리얼의 후반부에서 필요하므로 URL 맵 이름을 기록해 둡니다.

부하 분산기를 만들지 않은 경우 다음 페이지를 참고하여 부하 분산기를 만드세요.

비공개 키 및 인증서 만들기

비공개 키와 인증서를 만들려면 다음을 수행합니다.

  1. 신뢰할 수 있는 서드 파티 인증 기관 (CA)을 사용하여 관련 키와 함께 인증서를 발급합니다.

  2. 인증서가 올바르게 연결되었고 신뢰할 수 있는 루트 인증서인지 확인합니다.

  3. 다음 PEM으로 인코딩된 파일을 준비합니다.

    • 인증서 파일(CRT)
    • 해당 비공개 키 파일(KEY)

인증서를 요청하고 유효성을 검사하는 방법에 대한 자세한 내용은 비공개 키 및 인증서 만들기를 참고하세요.

인증서 관리자에 자체 관리형 인증서 업로드

인증서를 인증서 관리자에 업로드하려면 다음을 실행하세요.

콘솔

  1. Google Cloud 콘솔에서 인증서 관리자 페이지로 이동합니다.

    인증서 관리자로 이동