fgpv-vpgf / rcs

RAMP Configuration Service
http://fgpv-vpgf.github.io/rcs
1 stars 8 forks source link

Certificate Verify Failed #104

Open jvanulde opened 6 years ago

jvanulde commented 6 years ago

Trying to register the following fails:

{
"en": {
    "service_url": "https://geoportal.gc.ca/arcgis/rest/services/FGP/West_Coast_Vancouver_Island_Synnoptic_Bottom_Trawl_Survey/MapServer/0",
    "service_type": "esriFeature",
    "metadata": {
        "metadata_url": "https://gcgeo.gc.ca:443/geonetwork/srv/eng/xml.metadata.get?uuid=557e42ae-06fe-426d-8242-c3107670b1de",
        "catalogue_url": "https://gcgeo.gc.ca:443/geonetwork/metadata/eng/557e42ae-06fe-426d-8242-c3107670b1de"
    },
    "service_name": "West Coast Vancouver Island Synoptic Bottom Trawl Survey"
},
"fr": {
    "service_url": "https://geoportal.gc.ca/arcgis/rest/services/FGP/West_Coast_Vancouver_Island_Synnoptic_Bottom_Trawl_Survey/MapServer/1",
    "service_type": "esriFeature",
    "metadata": {
        "metadata_url": "https://gcgeo.gc.ca:443/geonetwork/srv/fre/xml.metadata.get?uuid=557e42ae-06fe-426d-8242-c3107670b1de",
        "catalogue_url": "https://gcgeo.gc.ca:443/geonetwork/metadata/fre/557e42ae-06fe-426d-8242-c3107670b1de"
    },
    "service_name": "Relevé synoptique au chalut de fond sur la côte ouest de l\u2019île de Vancouver"
},
"version": "2.0"
}

The following error is returned:

2018-07-31T20:46:45.134Z {"msg": "Problem communicating with service endpoint https://geoportal.gc.ca/arcgis/rest/services/FGP/West_Coast_Vancouver_Island_Synnoptic_Bottom_Trawl_Survey/MapServer/0 HTTPSConnectionPool(host='geoportal.gc.ca', port=443): Max retries exceeded with url: /arcgis/rest/services/FGP/West_Coast_Vancouver_Island_Synnoptic_Bottom_Trawl_Survey/MapServer/0?f=json (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),))"}

2018-07-31T20:46:45.134Z put failed 400

Test endpoint here: https://dev.rcs.gcgeo.gc.ca/static/test.html

mweech commented 6 years ago

What version of RCS is this?

jvanulde commented 6 years ago

2.3.2

mweech commented 5 years ago

v3.0 of RCS was released on May 4th to address the remaining edge cases with SSL verification due to Python versions being out of date. This registers fine on our v3.0 RCS. You should upgrade to the newest version and let us know if this continues to be an issue.

{ "en": { "service_url": "https://geoportal.gc.ca/arcgis/rest/services/FGP/West_Coast_Vancouver_Island_Synnoptic_Bottom_Trawl_Survey/MapServer/0", "service_type": "esriFeature", "service_name": "West Coast Vancouver Island Synoptic Bottom Trawl Survey" }, "fr": { "service_url": "https://geoportal.gc.ca/arcgis/rest/services/FGP/West_Coast_Vancouver_Island_Synnoptic_Bottom_Trawl_Survey/MapServer/1", "service_type": "esriFeature", "service_name": "Relevé synoptique au chalut de fond sur la côte ouest de l\u2019île de Vancouver" }, "version": "2.0" }

AndrewWSHenry commented 5 years ago

@mweech Is there a specific version of the viewer that needs to be used With v3.0 of RCS.

In dev we presently have version 2.4+ (2.5ish) of the viewer.