Not able to install Salesforce input plugin on Windows

Hi,

I am trying to install the salesforce input plugin on the windows server 2019 Datacenter.

Below is the command I am trying to run which i found in documentation:

bin/logstash-plugin install logstash-input-salesforce

ERROR: Something went wrong when installing logstash-input-salesforce, message: certificate verify failed

I referred this discussion topic in which it states that we should add the below line in ${LOGSTASH_HOME}/lib/pluginmanager/install.rb to disable SSL certificate verification

OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE)

However after doing so I am getting an error:

"Using bundled JDK: E:\logstash-8.11.1-windows-x86_64\logstash-8.11.1\jdk\bin\java.exe"
E:/logstash-8.11.1-windows-x86_64/logstash-8.11.1/lib/pluginmanager/install.rb:18: warning: already initialized constant OpenSSL::SSL::VERIFY_PEER
Validating logstash-input-salesforce
Unable to download data from
https://rubygems.org
- bad response Forbidden 403 (
https://rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-input-salesforce

Can anyone help me on this please?