Skip to content

Commit

Permalink
try cert fix
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Aug 17, 2020
1 parent 8fe5b7d commit 953c263
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ version = "1.1.3"
[deps]
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
GDAL_jll = "a7073274-a066-55f0-b90d-d619367d196c"
MozillaCACerts_jll = "14a3606d-f60d-562e-9121-12d972cd8159"
PROJ_jll = "58948b4f-47e0-5654-a9ad-f609743f8632"

[compat]
Expand Down
4 changes: 4 additions & 0 deletions src/GDAL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module GDAL

using PROJ_jll
using GDAL_jll
using MozillaCACerts_jll
using CEnum

const Ctm = Base.Libc.TmStruct
Expand Down Expand Up @@ -44,6 +45,9 @@ function __init__()
GDAL_DATA[] = joinpath(GDAL_jll.artifact_dir, "share", "gdal")
cplsetconfigoption("GDAL_DATA", GDAL_DATA[])

# set path to certificates, see https://trac.osgeo.org/gdal/ticket/6732
cplsetconfigoption("CAINFO", cacert)

# set PROJ_LIB location, this overrides setting the environment variable
PROJ_LIB[] = joinpath(PROJ_jll.artifact_dir, "share", "proj")
osrsetprojsearchpaths([PROJ_LIB[]])
Expand Down

0 comments on commit 953c263

Please sign in to comment.