Skip to main content
Answer

REST API SSL certification issue

  • October 29, 2021
  • 5 replies
  • 520 views

Juergen
Novice
Forum|alt.badge.img+7

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

Best answer by HolowEd

@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/ 

5 replies

Forum|alt.badge.img+11
  • Vaulter
  • Answer
  • October 29, 2021

@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/ 


Juergen
Novice
Forum|alt.badge.img+7
  • Author
  • Novice
  • October 29, 2021

@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


Forum|alt.badge.img+11
  • Vaulter
  • October 29, 2021

@Juergen 

What is the REST API call that you are using.


Juergen
Novice
Forum|alt.badge.img+7
  • Author
  • Novice
  • October 29, 2021

@HolowEd 

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

this is out of the report SubClient Backup Coverage

regards Juergen

 


Forum|alt.badge.img+7

@Juergen the api should be 

api/cr/reportsplusengine and not api/crreportsplusengine