cancel
Showing results for 
Search instead for 
Did you mean: 

SSL Certificate error while trying to import swagger definition

SOLVED
Highlighted
Occasional Visitor

SSL Certificate error while trying to import swagger definition

I am trying to create a API project by using swagger/Open API definition(Rest) option.
I have provided the a correct swagger definition(HTTPS) , but while importing it is throwing an error as 
"unable to read location '<swagger.json>' due to a SSL configuration error. It is possible that the server SSL certificate is invalid, self-signed, or has an untrusted Certificate Authority."
From ready api documentation is saw that we face this issue when the specification is https and followed this solution,

but even after doing this i am facing the same error. Can you please provide an alternate solution to this

Possible Issues

ReadyAPI cannot import OpenAPI 3.0 specifications through HTTPS if the server where your spec resides has an invalid or expired security certificate. To work around this issue:

Add the following option to the vmoptions file:

-Dio.swagger.parser.v3.util.RemoteUrl.trustAll=true
Restart ReadyAPI to apply the change.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

Re: SSL Certificate error while trying to import swagger definition

@Dhanya_shree :

 

Hope you will get some help from below Link

 

https://github.com/swagger-api/swagger-parser/issues/538


Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal

View solution in original post

2 REPLIES 2
Highlighted
Community Leader

Re: SSL Certificate error while trying to import swagger definition

@Dhanya_shree :

 

Hope you will get some help from below Link

 

https://github.com/swagger-api/swagger-parser/issues/538


Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal

View solution in original post

Highlighted
Community Manager

Re: SSL Certificate error while trying to import swagger definition

Thank you Himanshu!

@Dhanya_shree was the provided link helpful?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors