Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOAP calls fails with OpenSSL 1.1.1 #2

Closed
parijke opened this issue Nov 17, 2020 · 1 comment · Fixed by #3
Closed

SOAP calls fails with OpenSSL 1.1.1 #2

parijke opened this issue Nov 17, 2020 · 1 comment · Fixed by #3

Comments

@parijke
Copy link
Contributor

parijke commented Nov 17, 2020

Because OpenSSL defaults calls to seclevel 2, you have to specify seclevel 1

    protected function stream_context ($ssl_verifypeer = true, $options = []) {
      $options['http']['user_agent'] = 'PHPSoapClient';
      $options['ssl']['ciphers'] = 'DEFAULT@SECLEVEL=1'; // Added to enforce compatability with AEAT

      if (!$ssl_verifypeer) {
        $options['ssl']['verify_peer'] = false;
        $options['ssl']['verify_peer_name'] = false;
        $options['ssl']['allow_self_signed'] = true;
      }

I tested the above and it works

alphp added a commit that referenced this issue Nov 17, 2020
@alphp
Copy link
Member

alphp commented Nov 17, 2020

#3 Merged, thanks a lot

@alphp alphp closed this as completed Nov 17, 2020
@alphp alphp linked a pull request Nov 17, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants