If you are getting a similar error, you can fix it by installing Perl-IO-Socket-SSL in RHEL or CentOS operating system. If on CentOS 8 then you can use the following DNF command. This has helped me I hope you too.

Can t locate IO Socket SSL pm in  INC in Centos - 9Can t locate IO Socket SSL pm in  INC in Centos - 40Can t locate IO Socket SSL pm in  INC in Centos - 35Can t locate IO Socket SSL pm in  INC in Centos - 5Can t locate IO Socket SSL pm in  INC in Centos - 83Can t locate IO Socket SSL pm in  INC in Centos - 98