最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

wp cli - WP-CLI - How to install a plugin from a remote server

matteradmin9PV0评论

I'm trying to install a plugin that i downloaded and i host on my server inside a vagrant box to use locally.

I'm running this command to try to install it:

wp plugin install .zip

but it fails with this error:

Downloading install package from example/hosted/plugin.zip... Warning: Download failed. "stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed stream_socket_client(): Failed to enable crypto stream_socket_client(): unable to connect to ssl://example:443 (Unknown error)" Error: No plugins installed.

It's clear to me that the issue is because the site is using an ssl certificate and the wp-cli can't trust it, but how can i solve this? how do i make the wp-cli trust the server?

Thanks

I'm trying to install a plugin that i downloaded and i host on my server inside a vagrant box to use locally.

I'm running this command to try to install it:

wp plugin install https://example/hosted/plugin.zip

but it fails with this error:

Downloading install package from example/hosted/plugin.zip... Warning: Download failed. "stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed stream_socket_client(): Failed to enable crypto stream_socket_client(): unable to connect to ssl://example:443 (Unknown error)" Error: No plugins installed.

It's clear to me that the issue is because the site is using an ssl certificate and the wp-cli can't trust it, but how can i solve this? how do i make the wp-cli trust the server?

Thanks

Share Improve this question asked May 13, 2018 at 7:46 NickNick 1771 silver badge9 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

wp plugin install https://example.tld/path-to-zip-file/file.zip

This fails because example port 443 was blocked or example may be have no SSL certificate.

If you try now, you will get

Warning: Download failed. "Not Found" Error: No plugins installed.

Post a comment

comment list (0)

  1. No comments so far