Perl "lwp-request" giving error 500 using TLS 1.2

scohenr

We've been using a shipping API via our Unix server, specifically SCO Openserver 5.0.7, for a little over a year.

Our system generates XML files, sends them to the server using the lwp-request command, receives the response, interprets it, and processes it as needed by our system.

The exact command we use is:

lwp-request -m POST https://url.com < REQUESTFILE.XML > RESPONSEFILE.XML

The shipping company is upgrading all servers to require TLS 1.2, and now I get

500 SSL negotiation failed:

as a response when using this command.

I'm not sure how to go about making our system compatible.

  • Do I need to update Perl? (Current version is v5.8.8 built for i586-pc-sco3.2v5.0). If so, what is the minimum version to use TLS 1.2?

  • Do I need to update LWP? I believe my LWP version is 5.805 (got this using perl -MLWP -le "print(LWP->VERSION)")

  • Do I need to go into the lwp-request script and manually modify it?

  • Or is there perhaps another command that does an equivalent job using TLS 1.2?

Steffen Ullrich

Given your very old version of Perl (5.8.8, where 5.8.9 was release 2008) and LWP (5.805, 5.806 was released 2007) on a very old OS (SCO OpenServer 5.0.7, last update around 2009) it is likely that you are also running a very old version of OpenSSL. TLS 1.2 was only specified in 2008 and got available in OpenSSL only with 1.0.1 which was released 03/2012, i.e. several years after any software updates to your system.

You can check it it with openssl version and my guess is that it says something about version 0.9.8, i.e. way too old.

To make TLS 1.2 work on this old system you would need to compile a newer version of OpenSSL (at least the latest 1.0.1) and rebuild the Perl modules interfacing with OpenSSL so that they use this new version. Depending on your setup this might be Crypt::SSLeay or Net::SSLeay. And given how old your system is it is not unlikely that you run in various problems with compiling simply because most don't expect that somebody tries to compile newer software on outdated systems. Thus it might just be easier to upgrade everything to a recent and supported OS instead of trying to fight with an old system.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

WordPress is giving 500 error

From Dev

htaccess FilterProvider giving error 500

From Dev

android rest client giving error of internal server error 500 (using retrofit okhttp and gson)

From Dev

php form keeps giving me 500 error

From Dev

Codeanywhere DevBox - Laravel giving 500 error

From Dev

.htaccess getting wrong giving 500 internal error

From Dev

.htaccess mod_rewrite giving 500 error

From Dev

RewriteRule giving 500 Internal Server Error

From Dev

PHP code giving 500 internal server error

From Dev

OpenShift PHP Image Asset Giving 500 Error

From Dev

post request by axios to laravel giving 500 error

From Dev

Yii2 installation using composer giving error

From Dev

Perl hash giving strict refs error

From Dev

Using setdiff with cellfun giving error

From Dev

Heroku giving 500 error with little information + asset files are empty [Rails]

From Dev

Non-www .htaccess redirect to www giving 500 error

From Dev

Why is npm giving 500 and 503 errors: "registry error parsing json"?

From Dev

IIS Giving a 500 Internal Server Error When Serving a PHP file

From Dev

How to fix an unknown internal server error (500) Nginx is giving me?

From Dev

Cascading dropdowns In MVC5 On demand load is giving 500 Error

From Dev

Yoast post_tag-sitemap giving error 500

From Dev

JQUERY PHP on Chrome giving a 500 error for GET Request

From Dev

sh: 1: Syntax error: redirection unexpected when using backticks perl

From Dev

500 error using logging handler

From Dev

Error 500 Using Mysql In Php

From Dev

Pandas merge giving error "Buffer has wrong number of dimensions (expected 1, got 2)"

From Dev

Why is this create statement giving the error "ArgumentError: wrong number of arguments (1 for 2)"?

From Dev

Error in using system() in Perl

From Dev

Net::SSH::Perl is giving error msg No matching cipher found

Related Related

  1. 1

    WordPress is giving 500 error

  2. 2

    htaccess FilterProvider giving error 500

  3. 3

    android rest client giving error of internal server error 500 (using retrofit okhttp and gson)

  4. 4

    php form keeps giving me 500 error

  5. 5

    Codeanywhere DevBox - Laravel giving 500 error

  6. 6

    .htaccess getting wrong giving 500 internal error

  7. 7

    .htaccess mod_rewrite giving 500 error

  8. 8

    RewriteRule giving 500 Internal Server Error

  9. 9

    PHP code giving 500 internal server error

  10. 10

    OpenShift PHP Image Asset Giving 500 Error

  11. 11

    post request by axios to laravel giving 500 error

  12. 12

    Yii2 installation using composer giving error

  13. 13

    Perl hash giving strict refs error

  14. 14

    Using setdiff with cellfun giving error

  15. 15

    Heroku giving 500 error with little information + asset files are empty [Rails]

  16. 16

    Non-www .htaccess redirect to www giving 500 error

  17. 17

    Why is npm giving 500 and 503 errors: "registry error parsing json"?

  18. 18

    IIS Giving a 500 Internal Server Error When Serving a PHP file

  19. 19

    How to fix an unknown internal server error (500) Nginx is giving me?

  20. 20

    Cascading dropdowns In MVC5 On demand load is giving 500 Error

  21. 21

    Yoast post_tag-sitemap giving error 500

  22. 22

    JQUERY PHP on Chrome giving a 500 error for GET Request

  23. 23

    sh: 1: Syntax error: redirection unexpected when using backticks perl

  24. 24

    500 error using logging handler

  25. 25

    Error 500 Using Mysql In Php

  26. 26

    Pandas merge giving error "Buffer has wrong number of dimensions (expected 1, got 2)"

  27. 27

    Why is this create statement giving the error "ArgumentError: wrong number of arguments (1 for 2)"?

  28. 28

    Error in using system() in Perl

  29. 29

    Net::SSH::Perl is giving error msg No matching cipher found

HotTag

Archive