[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: User / Password issue
Danny,
The errors you cite here are not related to userid/password. When they
moved to the new box they must've updated their SSL configuration.
Unfortunately the errors you're getting (Peer not recognized or badly
formed message) can be caused by several different things.
1) Server requires TLS 1.1/1.2 or higher and you don't have them
enabled, or are using a version of HTTPAPI that doesn't support them.
2) Trying to connect to a non-SSL service using SSL.
3) Something is screwed up in the digital certificate manager.
I'd say #1 is most likely. So you'll want to make sure you're running
the current version of HTTPAPI, and that you've installed TLS 1.2
support in IBM i. You can start at the following link to learn about
this, and click through to the articles it references
http://www.ibmsystemsmag.com/Blogs/i-Can/Archive/new-system-ssl-support/
-SK
On 4/29/2016 6:29 PM, Hayes, Daniel wrote:
This is part of my WebSrv subroutine:
begsr
websrv;
URL =
'';
szAM$$ =
0;
open
Yourl;
read yourl;
close
yourl;
// Set basic
authentication.
http_setAuth(HTTP_AUTH_BASIC
:
%trim(USR)
:
%trim(Pwd));
url = %trim(url) +
%trim(klame);
url = %trim(url) +
'/';
url = %trim(url) +
%trim(%char(dat10));
If khpyin =
'E';
url = %trim(url) + '/';
url = %trim(url) +
'EFT';
Else;
url = %trim(url) +
'/';
url = %trim(url) +
'CHK';
ENDIF;
Monitor;
response =
'';
rc=http_url_get_raw(url:1:%paddr(Process):60);
szHTML =
response;
On-Error;
erz += 1;
EndMon;
nBytes =
%len(%trim(szHTML));
if rc <>
1;
http_crash();
endif;
I have URL, User and Password stored in file YOURL.
This was working fine until they moved to a new box which is requiring
UserID and Password, so I added the code highlighted in yellow above.
When it executes I get this message:
(GSKit) Identifier value is not
valid.
(GSKit) Peer not recognized or badly formatted message
received.
SSL Handshake: (GSKit) Peer not recognized or badly formatted
message
received.
One or more errors occurred during execution of your job J5504257.
Check
lower level messages for further
information.
I am pretty lost at the moment and would appreciate any constructive
criticism.
Thanks,
Daniel E. `Danny' Hayes
Senior JD Edwards Developer
813 901-2150 x133154
cid:image001.png@01CFCC0B.D6D16F30
9119 Corporate Lake Drive | Tampa Florida 33634 |
[1]www.carecentrix.com
__________________________________________________________________
This communication is intended only for the use of the individual or
entity named as the addressee. It may contain information which is
privileged and/or confidential under applicable law. If you are not the
intended recipient or such recipient's employee or agent, you are
hereby notified that any dissemination, copy or disclosure of this
communication is strictly prohibited. If you have received this
communication in error, please immediately notify CareCentrix
Compliance Hot Line at (877) 848-8229 and notify the sender by
electronic mail. Please expunge this communication without making any
copies. Thank you for your cooperation.
References
1. http://www.carecentrix.com/
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7539 / Virus Database: 4563/12131 - Release Date: 04/29/16
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------