USE HTTPS in C# by Running the Container with a Certificate
컨테이너를 인증서와 함께 실행해야 하는 경우, 다음 단계를 따라 인증서를 생성하고 로컬 머신을 구성하십시오.
인증서를 사용하여 IronSecureDoc 컨테이너를 실행합니다.
인증서 생성 :
# Generates a new HTTPS certificate for use with ASP.NET Core. # Saves the certificate at the specified path and protects it with a password. dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\ironsecuredoc.pfx -p <CREDENTIAL_PLACEHOLDER> # Trusts the generated certificate on your local machine. dotnet dev-certs https --trust# Generates a new HTTPS certificate for use with ASP.NET Core. # Saves the certificate at the specified path and protects it with a password. dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\ironsecuredoc.pfx -p <CREDENTIAL_PLACEHOLDER> # Trusts the generated certificate on your local machine. dotnet dev-certs https --trustSHELL비밀번호로
<CREDENTIAL_PLACEHOLDER>을(를) 교체하십시오.Docker 컨테이너 실행 :
# Runs the IronSecureDoc Docker container with both HTTP and HTTPS ports exposed. docker container run -d \ -p 8081:8081 -p 8080:8080 \ # Maps container ports to host ports for HTTP and HTTPS. -e HTTP_PORTS=8080 \ # Sets the HTTP port for the application. -e HTTPS_PORTS=8081 \ # Sets the HTTPS port for the application. -e IronSecureDoc_LicenseKey=<IRONSECUREDOC_LICENSE_KEY> \ # Provides the IronSecureDoc license key. -e ENVIRONMENT=Production \ # Configures the environment as Production. -v %USERPROFILE%\.aspnet\https:/https:ro \ # Mounts the directory to the container as read-only. -e CERTIFICATE_PATH=%USERPROFILE%\.aspnet\https\ironsecuredoc.pfx \ # Specifies the path to the certificate in the container. -e CERTIFICATE_PASSWORD=<CERTIFICATE_PASSWORD> \ # Password for the certificate. ironsoftwareofficial/ironsecuredoc:latest # Specifies the Docker image to use.# Runs the IronSecureDoc Docker container with both HTTP and HTTPS ports exposed. docker container run -d \ -p 8081:8081 -p 8080:8080 \ # Maps container ports to host ports for HTTP and HTTPS. -e HTTP_PORTS=8080 \ # Sets the HTTP port for the application. -e HTTPS_PORTS=8081 \ # Sets the HTTPS port for the application. -e IronSecureDoc_LicenseKey=<IRONSECUREDOC_LICENSE_KEY> \ # Provides the IronSecureDoc license key. -e ENVIRONMENT=Production \ # Configures the environment as Production. -v %USERPROFILE%\.aspnet\https:/https:ro \ # Mounts the directory to the container as read-only. -e CERTIFICATE_PATH=%USERPROFILE%\.aspnet\https\ironsecuredoc.pfx \ # Specifies the path to the certificate in the container. -e CERTIFICATE_PASSWORD=<CERTIFICATE_PASSWORD> \ # Password for the certificate. ironsoftwareofficial/ironsecuredoc:latest # Specifies the Docker image to use.SHELL<IRONSECUREDOC_LICENSE_KEY>과<CERTIFICATE_PASSWORD>을 각각 실제 IronSecureDoc 라이선스 키와 인증서 비밀번호로 교체하십시오.
자주 묻는 질문
문서 보안에 HTTPS가 왜 중요한가요?
HTTPS는 전송되는 데이터를 암호화하여 문서 보안에 필수적입니다. 이를 통해 전송 중에 민감한 정보가 기밀로 유지되고 가로챌 위험에서 보호됩니다.
내 애플리케이션에 HTTPS 인증서를 어떻게 생성할 수 있나요?
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\ironsecuredoc.pfx -p <CREDENTIAL_PLACEHOLDER> 명령을 실행하여 ASP.NET Core에서 사용할 새로운 인증서를 생성하면 됩니다.
내 로컬 기기에서 HTTPS 인증서가 신뢰되도록 하려면 어떻게 해야 하나요?
로컬 기기에서 HTTPS 인증서를 신뢰하려면 dotnet dev-certs https --trust 명령을 사용하세요. 이 명령은 생성된 인증서를 신뢰하도록 시스템을 구성합니다.
HTTPS 지원을 통해 Docker 컨테이너를 실행하는 프로세스는 무엇인가요?
HTTPS 지원으로 Docker 컨테이너를 실행하려면, HTTP와 HTTPS 포트를 모두 노출하고 IronSecureDoc_LicenseKey 및 CERTIFICATE_PASSWORD와 같은 필요한 환경 변수를 설정하고 인증서 디렉토리를 읽기 전용으로 마운트하세요.
Docker 설정에서 HTTPS에 대해 어떤 포트를 구성해야 하나요?
Docker 설정에서 HTTPS 구성을 위해 포트 8081을 HTTPS에, 포트 8080을 HTTP에 노출하여 컨테이너 포트를 호스트 포트에 매핑하세요.
Docker 컨테이너에 인증서 비밀번호를 어떻게 전달하나요?
Docker 실행 명령을 실행할 때 환경 변수 CERTIFICATE_PASSWORD를 사용하여 Docker 컨테이너에 인증서 비밀번호를 전달합니다.
Docker에서 'Production'으로 환경을 구성하는 데 필요한 단계는 무엇인가요?
Docker에서 'Production'으로 환경을 구성하려면, Docker 실행 명령에서 ENVIRONMENT=Production 환경 변수를 설정하세요.
Docker 명령에서 플레이스홀더는 어떻게 처리해야 하나요?
Docker 명령에서 <IRONSECUREDOC_LICENSE_KEY> 및 <CERTIFICATE_PASSWORD>와 같은 플레이스홀더를 실제 IronSecureDoc 라이선스 키 및 인증서 비밀번호로 대체하여 적절한 기능을 보장합니다.





