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

SSL certificate problem: unable to get local issuer certificate #1438

Open
dovanmanh080485 opened this issue Aug 22, 2023 · 3 comments
Open

Comments

@dovanmanh080485
Copy link

Hello,
I'm new to Behat.

public function iAmInTheLoginPath($arg1)
{
$sessionHeadless = $this->getMink()->getSession('goutte');
$sessionHeadless->visit($arg1);
$assertHeadless = $this->assertSession('goutte');
}

I have an error.

 Given I am in the login "xxxxxxxxxxxxxxxxxxx" path                   # UserLoginContent::iAmInTheLoginPath()
  SSL certificate problem: unable to get local issuer certificate for "xxxxxxxxxxxxxxxxxxx". (Symfony\Component\HttpClient\Exception\TransportException)
  
  
  Please help me to resolve the error. Thanks
@stof
Copy link
Member

stof commented Aug 22, 2023

Without knowing your setup, there is no way to help you as we cannot know why your certificate is invalid.

@dovanmanh080485
Copy link
Author

dovanmanh080485 commented Aug 22, 2023

Without knowing your setup, there is no way to help you as we cannot know why your certificate is invalid.

Hello @stof Thanks for your reply.

This is my behat.yml

default:
  suites:
    suite_user:
      paths: [ '%paths.base%/features/suite_user' ]
      contexts:
        - UserLoginContent

@stof
Copy link
Member

stof commented Aug 22, 2023

this does not allow me to know where your certificate comes from or which URL you load.

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

No branches or pull requests

2 participants