Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

259
Visualizações
Could not create SSL/TLD secure channel in Docker build

I have a Docker build script that functions just fine on a local machine but fails on my build server with the error "Could not create SSL/TLS secure channel." This happens when trying to retrieve an archive from a resource using TLS 1.2.

The download works just fine from the command line on the local machine; the trouble is in the Docker Windows image.

Here's what I've added to my Dockerfile in an attempt to get around this:

  • RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
  • RUN "Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord;"

No matter what I do, when I run RUN [Net.ServicePointManager]::SecurityProtocol; in my Dockerfile I'm told that the only available protocols are Ssl3 and Tls, not Tls12.

Thanks for any advice.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

A bit late, but the RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; is lost when the RUN command is finished. You need to include that in the same RUN for example:

RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; `
Invoke-WebRequest "https://dist.nuget.org/win-x86-commandline/v$env:NUGET_VERSION/nuget.exe" -UseBasicParsing -OutFile "$env:ProgramFiles\NuGet\nuget.exe"
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda