Solved

REST API SSL certification issue

  • 29 October 2021
  • 5 replies
  • 425 views

Userlevel 3
Badge +8

Hello,

 

When I access the REST API via http://<<server>>:81/SearchSvc/CVWebService.svc/ it is working with all API commands, now I started to use REST API reports, like:  http://<<server>>:81//webconsole/api/crreportsplusengine/datasets/ now I get a SSL error ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)

I send my requests via python 3.9 with ”requests.get(service, headers=headers)”

commvault version 11.20.55

any idea what is going wrong?

thanks

regards Jürgen

icon

Best answer by HolowEd 29 October 2021, 13:45

View original

5 replies

Userlevel 5
Badge +12

@Juergen 

Can you try to access the Rest API report using port 80. As the webconsole is access via tomcat and not the webserver,  please try to access via either of these url  http://<<server>>:80//webconsole/api/crreportsplusengine/datasets/  or  https://<<server>>//webconsole/api/crreportsplusengine/datasets/ 

Userlevel 3
Badge +8

@HolowEd 

Thanks for your response.

I tried with port 80, now I get this error:

<!DOCTYPE html>
<html>
    <head>
        <title>A potentially dangerous Request.Path value was detected from the client (:).</title>
        <meta name="viewport" content="width=device-width" />
        <style>

…..

regards juergen

Userlevel 5
Badge +12

@Juergen 

What is the REST API call that you are using.

Userlevel 3
Badge +8

@HolowEd 

http://<<server>>:80/webconsole/api/crreportsplusengine/datasets/<<datasetID>>:<<datasetID>>/data/

this is out of the report SubClient Backup Coverage

regards Juergen

 

Userlevel 3
Badge +6

@Juergen the api should be 

api/cr/reportsplusengine and not api/crreportsplusengine

Reply