5.2. Containerfile을 사용하여 이미지로 사용자 정의 인증서 가져오기
Containerfile에서 사용자 지정 인증서를 Red Hat Enterprise Linux 컨테이너 이미지로 정의하여 가져옵니다. 빌드 프로세스 중에 이러한 인증서를 추가하면 컨테이너화된 애플리케이션에서 내부 서비스 또는 개인 인증 기관과 신뢰할 수 있는 연결을 설정할 수 있습니다.
Containerfile 을 사용하여 사용자 정의 인증서 루트를 설치하는 지침을 포함합니다.
프로세스
컨테이너
파일을생성합니다.FROM <internal_repository>/<image> # Add certificate to the input set of anchors COPY additional-certificate-root.pem /etc/pki/ca-trust/source/anchors RUN update-ca-trust사용자 정의 이미지를 빌드합니다.
# podman build -t <your_image> .<
your_image> :을실행합니다.# podman run -it --rm <your_image>
검증
인증서가 생성된 병합 저장소에 있는지 확인합니다.
# cat etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem ...