composer: Composer\Downloader\TransportException - file could not be downloaded: Unable to locate peer certificate CN
Hi,
I am using composer with the WordPress BedRock project, and there’s a file that cannot be downloaded.
The error message is :
[Composer\Downloader\TransportException]
The "https://wpml.org//?download=1234&user_id=12345&subscription_key=my_sub_key" file could not be downloaded: Unable to locate peer certificate CN
Failed to enable crypto
failed to open stream: operation failed
This is a download for the WPML plugin, which allows composer. Here is my repo definition :
{
"type": "package",
"package": {
"name": "wpml-multilingual-cms",
"type": "wordpress-plugin",
"version": "3.3.6",
"dist": {
"type": "zip",
"url": "https://wpml.org//?download=1234&user_id=123456&subscription_key=my_sub_key"
},
"require" : {
"composer/installers": "~1.0"
}
}
},
What do you think? Can you help me?
I’m running PHP 5.5.30-1~dotdeb+7.1, ext-openssl 1.0.1.5 and OpenSSL 1.0.1e
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 22 (8 by maintainers)
Commits related to this issue
- Add support for empty CommonName in a certificate for php <5.6, fixes #5075 — committed to Seldaek/composer by Seldaek 8 years ago
hi, i find a solution to this problem and it worked for me http://codinginharmony.blogspot.com.au/2012/10/forcing-composer-to-use-https.html