Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not generate DH keypair on "Add composer dependency" in PhpStorm

I got warn message

Could not get package info. Failed to connect to https://packagist.org/packages/list.json: java.lang.RuntimeException: Could not generate DH keypair Please check your internet connection. 

when opening Composer Dependency on WebStorm.. after a bit search, some say maybe it's caused by java SDK. But the problem persist even after I update Java to the latest version java 8u45.

enter image description here

like image 382
Tek Yin Avatar asked May 14 '15 12:05

Tek Yin


1 Answers

/Applications/PhpStorm.app/Contents/Info.plist

<key>JVMVersion</key> <string>1.6*</string>

change↓

<key>JVMVersion</key> <string>1.8*</string>

like image 108
shuusetu Avatar answered Oct 14 '22 20:10

shuusetu