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

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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Filtering data retrieved from a DataSource

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors