2016-08-03 1 views
0

この問題は 私は公式スクリプト(setup.ps1 script source code)を実行している経由で私の窓10に徴兵をインストールしようとすると、私は仲間の問題に会った:powershellで簡単なhttpsダウンロードのデフォルトSSLContextを設定するには?徴兵<a href="http://www.foundweekends.org/conscript/setup.html" rel="nofollow">http://www.foundweekends.org/conscript/setup.html</a>から

:::: ERRORS 
    Server access Error: java.security.NoSuchAlgorithmException: Default SSLContext not available url=https://dl.bintray.com/foundweekends/maven-releases/org/foundweekends/conscript/conscript_2.11/0.5.0/conscript_2.11-0.5.0.pom 

    Server access Error: java.security.NoSuchAlgorithmException: Default SSLContext not available url=https://dl.bintray.com/foundweekends/maven-releases/org/foundweekends/conscript/conscript_2.11/0.5.0/conscript_2.11-0.5.0.jar 

    Server access Error: java.security.NoSuchAlgorithmException: Default SSLContext not available url=https://oss.sonatype.org/content/repositories/releases/org/foundweekends/conscript/conscript_2.11/0.5.0/conscript_2.11-0.5.0.pom 

    Server access Error: java.security.NoSuchAlgorithmException: Default SSLContext not available url=https://oss.sonatype.org/content/repositories/releases/org/foundweekends/conscript/conscript_2.11/0.5.0/conscript_2.11-0.5.0.jar 

    Server access Error: java.security.NoSuchAlgorithmException: Default SSLContext not available url=https://repo1.maven.org/maven2/org/foundweekends/conscript/conscript_2.11/0.5.0/conscript_2.11-0.5.0.pom 

    Server access Error: java.security.NoSuchAlgorithmException: Default SSLContext not available url=https://repo1.maven.org/maven2/org/foundweekends/conscript/conscript_2.11/0.5.0/conscript_2.11-0.5.0.jar 

私は問題がから来ていると思う:

$wc = New-Object System.Net.WebClient 
... 
$wc.DownloadFile($url, "$CS/$LJ") 

ここにはwcオブジェクトがありますが、ダウンロードするオブジェクトのSSLContextはアセンブルされません。

$ wc defalult SSLContextを与える方法の例を教えてください。httpsリンクをダウンロードできるようにできますか?

+0

でこれを入れてみてください。 https://oss.sonatype.org/content/repositories/public/org/scala-sbt/launcher/1.0.0/launcher-1.0.0.jar "をダウンロードしたスクリプトからのWebClient行は正しく動作します私のWindows 10にPowerShellをインストールします。私はあなたのJavaインストールが新しいSSLサイト用に設定されていない可能性が高いと思います。これらのサイトは[高SSLセキュリティ設定](https://www.ssllabs.com/ssltest/analyze.html?d=oss)に設定されています.sonatype.org&s = 52.22.249.229&latest) – TessellatingHeckler

答えて

0

はjava.security`エラーがPowerShellのから来ていません。あなたの `、それは、Java/JVM上で動作する、またはJavaライブラリを使用していない、あなたのスクリプトの先頭

[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} 
+0

これは役に立たないです、私はすでにそれをしています。 – user504909

関連する問題

 関連する問題