검색

7.2. Grafana 인증서 구성

download PDF

cephadm 은 ceph 키/값 저장소에 정의된 인증서를 사용하여 Grafana를 배포합니다. 인증서를 지정하지 않으면 cephadm 은 Grafana 서비스를 배포하는 동안 자체 서명된 인증서를 생성합니다.

ceph config-key set 명령을 사용하여 사용자 정의 인증서를 구성할 수 있습니다.

사전 요구 사항

  • 실행 중인 Red Hat Ceph Storage 클러스터.

프로세스

  1. cephadm 쉘에 로그인합니다.

    예제

    [root@host01 ~]# cephadm shell

  2. Grafana에 대한 사용자 정의 인증서를 구성합니다.

    예제

    [ceph: root@host01 /]# ceph config-key set mgr/cephadm/grafana_key -i $PWD/key.pem
    [ceph: root@host01 /]# ceph config-key set mgr/cephadm/grafana_crt -i $PWD/certificate.pem

  3. Grafana가 이미 배포된 경우 reconfig 를 실행하여 구성을 업데이트합니다.

    예제

    [ceph: root@host01 /]# ceph orch reconfig grafana

  4. 새 인증서를 추가할 때마다 다음 단계를 따르십시오.

    1. 새 디렉터리 만들기

      예제

      [root@host01 ~]# mkdir /root/internalca
      [root@host01 ~]# cd /root/internalca

    2. 키를 생성합니다.

      예제

      [root@host01 internalca]# openssl ecparam -genkey -name secp384r1 -out $(date +%F).key

    3. 키를 확인합니다.

      예제

      [root@host01 internalca]# openssl ec -text -in $(date +%F).key | less

    4. 요청 확인:

      예제

      [root@host01 internalca]# umask 077; openssl req -config openssl-san.cnf -new -sha256 -key $(date +%F).key -out $(date +%F).csr

    5. 서명을 위해 보내기 전에 요청을 검토합니다.

      예제

      [root@host01 internalca]# openssl req -text -in $(date +%F).csr | less

    6. CA 서명으로 다음을 수행합니다.

      예제

      [root@host01 internalca]# openssl ca -extensions v3_req -in $(date +%F).csr -out $(date +%F).crt -extfile openssl-san.cnf

    7. 서명된 인증서를 확인합니다.

      예제

      [root@host01 internalca]# openssl x509 -text -in $(date +%F).crt -noout | less

추가 리소스

Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.