View Full Version : Protocol scheme 'https' is not supported
DephNet[Paul] 11-10-2006, 04:38 PM Hi Guys,
I have a strange problem with a PERL script That has been developed for us.
The script is built as a shopping cart and is run on an SSL enabled domain. All through out testing the script has been working fine with the SSL certificate, but when we try to interface with Protx to verify the card details we get a Script Execution Error saying "Protocol scheme 'https' is not supported"
Any thoughts on this?
Many Thanks
Paul
mwatkins 11-10-2006, 04:52 PM "run on SSL" isn't the same as being able to "talk to https" - your script interacts with the browser over https/ssl - virtually any script will - but the hiccup is likely caused by an api call - an attempt to open another resource via https and the api doesn't support it.
I'm guessing that whatever http protocol API you are using in Perl is not https capable. You'll need to find either an update or an alternative API.
No doubt there is an error in a log somewhere pointing to the very line of code which uses the offending API. I don't do Perl any more, perhaps someone else can point an alternate out for you.
DephNet[Paul] 11-10-2006, 04:56 PM Thankyou for your swift reply mwatkins. I am guessing from your reply that I will either need to recompile PERL with SSL support or to install a PERL module for this?
Paul
zacharooni 11-10-2006, 05:26 PM Try
# perl -MCPAN -e "install Net::SSLeay"
Just my two cents..
DephNet[Paul] 11-10-2006, 05:48 PM Hi SNC-Zach,
I have tried installing Net::SSLeay but that didnt seem to work. even after a reboot.
I also have tried to install IO::All::HTTPS but on that I get the error "make test had returned bad status, won't install without force"
Any ideas on where to go from here?
Paul
horizon 11-10-2006, 05:58 PM If you're not the actual web hosting provider, contact your web hosting party in order to resolve this problem. They might be able to give you an hint on that.
DephNet[Paul] 11-10-2006, 06:01 PM Hi horizon,
As this is an unmanaged UK2 dedicated server they will not do anything.
Paul
horizon 11-10-2006, 06:27 PM A certified technician should do the trick in order to check your dedicated server in those cases. ;)
DephNet[Paul] 11-10-2006, 06:38 PM But then again a certified technician would require payment :P. This is something that has not been factored into the cost of this. If it is as "simple" as running a fre SSH commands then I see no reason why I should pay for a technician to do that.
That is just my 0.02c
Paul
horizon 11-10-2006, 08:12 PM Well, my theory on this would be that if you run a properly handled web server and that you require assistance over something that only you has access to make such modifications on your server (especially if your server contains lots of customers), I'd definitely invest, as a backup solution, in case things would get crippy. ;)
mwatkins 11-11-2006, 10:35 AM I have tried installing Net::SSLeay but that didnt seem to work. even after a reboot. I also have tried to install IO::All::HTTPS but on that I get the error "make test had returned bad status, won't install without force"
Don't randomly reboot a machine just because some minor library has been installed. This isn't Windows after all!
While I have no doubt that the initial analysis was dead on, you really should always post the exact error messages you are getting (rather than say "didn't work"). In particular we need to see what is happening when your code tries to access a server via SSL. We can't see over your shoulder.
Also, what does perl -e 'use Net::SSLeay' report back? Anything?
DephNet[Paul] 11-11-2006, 05:15 PM Hi mwatkins,
The origional error message that was being shown is:Script Execution Error
The following error was returned:
Protocol scheme 'https' is not supportedon origionally installing Net::SSLeay we were still getting the above error message.
On trying to figure out the problem this morning I decided to check the link that the developer of the script sent me and everything is working as it should be.
Many thanks for your help
Paul
mwatkins 11-11-2006, 05:41 PM Re error message - I see. I was hoping that the script would have kicked out a line number within a script or pointed to a function or method which failed. Usually looking at the code will help in such a case, but need a hint as to where to look for the needle!
Glad to hear you are over that hurdle. On to the next!
Cheers, mw
|