SSL API

Discussion in 'Developers' Forum' started by francoisPE, Jan 27, 2021.

  1. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Hello,
    I am running ISPC API.
    It runs quite well. It's amazing, allowing repeatability in configuration !

    I would like to be sure, I set up appropriate params.
    I connect as follow :
    Code:
    $context = stream_context_create([
        'ssl' => [
            // set some SSL/TLS specific options
            'verify_host' => true,
            'verify_peer' => true,
            'verify_peer_name' => true,
            'allow_self_signed' => false
        ]
    ]);
    $client = new SoapClient(null,
              array('location' => 'myremoteSoapLocation',
                    'uri'      => 'myremoteSoapUri',
                    'trace'    => 1,
                    'exceptions' => 1,
                    'stream_context' => $context));
    
    My question is may be stupid, but, regarding impact I prefer to ask : is $context set up as appropriate to ensure 'ssl' and encrypt connexion ?
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

  3. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Thanks a lot !
    I need to dig a little bit SSL... ;)
    But for the moment, my conf is good, that's what I want.
     

Share This Page