ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Help with Cosuming SOAP Web Service with certificate

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with Cosuming SOAP Web Service with certificate

    Hi all

    I?m new in using HTTAPI (LIBHTTP Scott Klement library) and I should consume a web service that use a certificate; I have written the RPG program that call http_url_post_stmf and if I run it in the /Tmp/httpapi_debug.txt I see that I listed below.

    Now that I have got the certificate , what I have to do ?
    1. Install the certificate in my Ibm with DCM (Digital certificate manager) - where I can find instruction for do that ?
    2. And after ?? I need to say to my RPG program that call http_url_post_stmf that should use that certificate ? or not o other


    If some one could explain the steps that I need to follow to call a Web Service that require a certificate, I would be gratefull

    Thanks in advance

    Tmp/httpapi_debug.txt

    HTTPAPI Ver 1.23 released 2008-04-24
    OS/400 Ver V6R1M0

    New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
    http_url_post_stmf(): entered
    getting post file size...
    opening file to be sent...
    opening file to be received
    http_persist_open(): entered
    http_long_ParseURL(): entered
    DNS resolver retrans: 2
    DNS resolver retry : 2
    DNS resolver options: x'00000136'
    DNS default domain: MYDOM.IT
    DNS server found: 192.168.z.xxx
    DNS server found: 192.168.z.xxx
    https_init(): entered
    -------------------------------------------------------------------------------------

    I?ve got the certificate but now I don?t know which are t
    Dump of local-side certificate information:
    -------------------------------------------------------------------------------------
    (GSKit) I/O: A connection with remote socket has been from it restored.
    ssl_error(406): (GSKit) I/O: A connection with remote socket has been from it restored.
    SetError() #30: SSL Handshake: (GSKit) I/O: A connection with remote socket has been from it restored.
    -------------------------------------------------------------------------------------
    Dump of server-side certificate information:
    -------------------------------------------------------------------------------------
    Cert Validation Code = 0


  • #2
    Hard to say what the issue could be from this.

    "A connection with remote socket has been from it restored" sounds like a bad translation from another language. I don't understand wht that message is. Could it be "A connection with a remote socket has been reset by that socket"? That indicates a network or protocol error.

    I see that you are using an extremely old version of HTTPAPI. Have you thought about updating?

    Comment


    • #3
      To add to my last post: I don't think updating HTTPAPI will solve your problem, since the problem you're having is in the operating system, it is not in HTTPAPI itself. (HTTPAPI calls operating system routines for TLS/SSL.) But updating HTTPAPI will make it easier for us to help you, since you'll be running the same version of HTTPAPI rather than one from 8 years ago.

      Comment


      • #4

        Hi thanks for you reply ; following this two links (http://docs.bvstools.com/home/ssl-do...e-authority-ca and http://www.scottklement.com/archives.../msg00132.html ) i solved the certificate problem . now i have another problem .. see my next post

        Comment

        Working...
        X