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 - 40Can t locate IO Socket SSL pm in  INC in Centos - 82Can t locate IO Socket SSL pm in  INC in Centos - 53Can t locate IO Socket SSL pm in  INC in Centos - 69Can t locate IO Socket SSL pm in  INC in Centos - 6Can t locate IO Socket SSL pm in  INC in Centos - 79Can t locate IO Socket SSL pm in  INC in Centos - 1Can t locate IO Socket SSL pm in  INC in Centos - 87Can t locate IO Socket SSL pm in  INC in Centos - 68Can t locate IO Socket SSL pm in  INC in Centos - 53Can t locate IO Socket SSL pm in  INC in Centos - 9Can t locate IO Socket SSL pm in  INC in Centos - 52Can t locate IO Socket SSL pm in  INC in Centos - 94Can t locate IO Socket SSL pm in  INC in Centos - 34Can t locate IO Socket SSL pm in  INC in Centos - 95Can t locate IO Socket SSL pm in  INC in Centos - 7Can t locate IO Socket SSL pm in  INC in Centos - 18Can t locate IO Socket SSL pm in  INC in Centos - 28Can t locate IO Socket SSL pm in  INC in Centos - 74Can t locate IO Socket SSL pm in  INC in Centos - 78Can t locate IO Socket SSL pm in  INC in Centos - 94Can t locate IO Socket SSL pm in  INC in Centos - 52Can t locate IO Socket SSL pm in  INC in Centos - 53