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

Certificate Error #102

Closed
xadvfh opened this issue Nov 22, 2020 · 12 comments · Fixed by #111 or #117
Closed

Certificate Error #102

xadvfh opened this issue Nov 22, 2020 · 12 comments · Fixed by #111 or #117
Milestone

Comments

@xadvfh
Copy link

xadvfh commented Nov 22, 2020

I'm getting the following certificate error running the jest agent:

Error: unable to verify the first certificate
    at C:\Users\username\source\repos\project-name\src\project\ClientApp\node_modules\@reportportal\client-javascript\lib\rest.js:31:23

I'm using Report Portal 5 with jest agent 5.0.1

@xadvfh
Copy link
Author

xadvfh commented Nov 23, 2020

I have verified that this error is thrown by axios when you use a self-signed certificate. We need a way to either set https.Agent({rejectUnauthorized: false}) or a way for agents to pass certs that should be trusted.

@xadvfh
Copy link
Author

xadvfh commented Dec 4, 2020

@AmsterGet Can someone look at this please? It is blocking my team completely.

@AmsterGet
Copy link
Member

Hi @xadvfh !
Unfortunately, our team is completely busy with other things.
Next week, I will try to take the time to investigate this issue and determine our next steps.

@xadvfh
Copy link
Author

xadvfh commented Jan 4, 2021

@AmsterGet just checking in on this again.

@xadvfh
Copy link
Author

xadvfh commented Jan 27, 2021

@AmsterGet another ping. This bug is making it so report portal cannot be used with self-signed certificates.

@alena-rak
Copy link

Hello. I'm facing this issue too, is there any update @AmsterGet? @xadvfh maybe you found some workaround?

@xadvfh
Copy link
Author

xadvfh commented Feb 8, 2021

@alena-rak the only work around i've found is to fork this package and set https.Agent({rejectUnauthorized: false}) and use the forked package.

it's unfortunate that such an important blocking issue is not getting any traction @AmsterGet

@AmsterGet
Copy link
Member

AmsterGet commented Feb 8, 2021

@xadvfh @alena-rak Hi guys!
Sorry for delay.
Unfortunately, our team currently lacks resources to address this issue.
If it will be possible to inject the https agent parameters into axios from the client config, would that work for you?

@alena-rak
Copy link

@AmsterGet yes, seems like that would solve the issue

@xadvfh
Copy link
Author

xadvfh commented Feb 8, 2021

@AmsterGet yes that should work

@xadvfh
Copy link
Author

xadvfh commented Mar 1, 2021

@AmsterGet another ping.

@AmsterGet AmsterGet added this to the 5.0.4 milestone Mar 1, 2021
@AmsterGet
Copy link
Member

AmsterGet commented Mar 1, 2021

@xadvfh
Added to milestone 5.0.4. We don't have an exact release date at this time.
Also this improvement needs to be added to all of our agent-js-*, so it may take longer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants