USE HTTPS in C# by Running the Container with a Certificate
Sertifika ile konteyner çalıştırmanız gerekiyorsa, sertifikayı oluşturmak ve yerel makineyi yapılandırmak için bu adımları izleyin:
Sertifika ile IronSecureDoc Konteynerini Çalıştırın
Sertifika Oluştur:
# 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>'yi bir parola ile değiştirin.Docker Konteynerini Çalıştırın:
# 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>ve<CERTIFICATE_PASSWORD>'yi sırasıyla gerçek IronSecureDoc lisans anahtarınız ve sertifika parolanız ile değiştirin.
Sıkça Sorulan Sorular
Belge güvenliği için HTTPS neden önemlidir?
HTTPS, belge güvenliği için kritik öneme sahiptir çünkü aktarılan verileri şifreler, hassas bilgilerin iletim sırasında kesilmeksizin gizli kalmasını ve korunmasını sağlar.
Uygulamam için bir HTTPS sertifikasını nasıl oluşturabilirim?
ASP.NET Core ile kullanmak için yeni bir sertifika oluşturmak amacıyla dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\ironsecuredoc.pfx -p komutunu çalıştırarak bir HTTPS sertifikası oluşturabilirsiniz.
HTTPS sertifikamın yerel makinemde güvenilir olduğunu nasıl sağlarım?
HTTPS sertifikanıza yerel makinenizde güvenmek için, dotnet dev-certs https --trust komutunu kullanın. Bu komut, oluşturulan sertifikaya güvenmek için sisteminizi yapılandırır.
HTTPS desteği ile bir Docker konteyneri çalıştırma süreci nedir?
HTTPS desteği ile bir Docker konteyneri çalıştırmak için, hem HTTP hem de HTTPS portlarını açın, IronSecureDoc_LicenseKey ve CERTIFICATE_PASSWORD gibi gerekli ortam değişkenlerini ayarlayın ve sertifika dizinini salt okunur olarak monte edin.
Bir Docker kurulumunda HTTPS için hangi portlar yapılandırılmalıdır?
Bir Docker kurulumunda HTTPS yapılandırması için, 8081 portunu HTTPS için ve 8080 portunu HTTP için açarak konteyner portlarını ana makine portlarına eşleyin.
Sertifika şifresini Docker konteynerine nasıl iletebilirim?
Sertifika şifresini CERTIFICATE_PASSWORD ortam değişkenini Docker çalıştırma komutunda belirterek Docker konteynerine iletin.
Docker’da ortamı 'Production' olarak yapılandırmak için hangi adımlar gerekli?
Docker’da ortamı 'Production' olarak yapılandırmak için, Docker çalıştırma komutunuzda ENVIRONMENT=Production ortam değişkenini ayarlayın.
Docker komutlarında yer tutucular nasıl ele alınmalıdır?
Docker komutlarında, ve gibi yer tutucuları, doğru işlevsellik için gerçek IronSecureDoc lisans anahtarınız ve sertifika şifrenizle değiştirin.





