Open painsAgains opened 2 years ago
Description
Hello! When I use fuzz-lean mode to test a service that requires authentication, I succeed.
dotnet "../restler_bin/restler/Restler.dll" fuzz-lean --grammar_file "./Compile/grammar.py" --dictionary_file "./Compile/dict.json" --settings "./Compile/engine_settings.json"
And--no_ssl
option I have also tried But they are all invalid requests.When I checked the
network-testing
log file I found every single request received a error message as:At first I thought the service ip or the authentication file was wrong,but when I used
curl
command,I successed.curl -k --cert /etc/service/pki/xxxx.crt --key /etc/service/pki/xxxx.key https://xxxx:6443/api/v1
Myengine_settings.json
as following:{ "per_resource_settings": {}, "max_combinations": 20, "client_certificate_path":"/etc/service/pki/xxx.crt", "client_certificate_key_path":"/etc/service/pki/xxxx.key", "host":"xxxx:6443" }
I really can't figure out what went wrong,so if someone can solve my problem, I would be grateful a lot Thanks!
I reset the host
field in API spec rather than in setting file, and retried.
The above problem was solved, but I encountered a new problem:
I know it's a problem with python lacking certificate authentication, but I don't know where to add the certificate from (I've specified the path to the certificate in the settings file, do I need to add it again?
Hello, Could you please let me know if you were able to fix this issue? I'm facing the same issue too
Thank you
Description
Hello! When I use fuzz-lean mode to test a service that requires authentication, I succeed.
dotnet "../restler_bin/restler/Restler.dll" fuzz-lean --grammar_file "./Compile/grammar.py" --dictionary_file "./Compile/dict.json" --settings "./Compile/engine_settings.json"
And--no_ssl
option I have also tried But they are all invalid requests.When I checked the
network-testing
log file I found every single request received a error message as:At first I thought the service ip or the authentication file was wrong,but when I used
curl
command,I successed.curl -k --cert /etc/service/pki/xxxx.crt --key /etc/service/pki/xxxx.key https://xxxx:6443/api/v1
Myengine_settings.json
as following:I really can't figure out what went wrong,so if someone can solve my problem, I would be grateful a lot Thanks!