[gdal-dev] GDAL, Proj and cacert

2022-02-11 Thread Paul Harwood
I have an application that uses GDAL with Proj Networking set on. This is a cross platform application. It works on some platforms but on mac (for instance) I get runtime errors like this GDAL failure (1) PROJ: Cannot open https://cdn.proj.org/us_nga_egm96_15.tif: error setting certificate file:

Re: [gdal-dev] GDAL, Proj and cacert

2022-02-11 Thread Even Rouault
Le 11/02/2022 à 18:24, Paul Harwood a écrit : I have an application that uses GDAL with Proj Networking set on. This is a cross platform application. It works on some platforms but on mac (for instance) I get runtime errors like this GDAL failure (1) PROJ: Cannot open https://cdn.proj.org/u

Re: [gdal-dev] GDAL, Proj and cacert

2022-02-11 Thread Paul Harwood
Ok - thanks. On Fri, 11 Feb 2022 at 17:38, Even Rouault wrote: > > Le 11/02/2022 à 18:24, Paul Harwood a écrit : > > I have an application that uses GDAL with Proj Networking set on. > > > > This is a cross platform application. It works on some platforms but > > on mac (for instance) I get runt

Re: [gdal-dev] GDAL, Proj and cacert

2022-02-11 Thread Jeff McKenna
Thanks for this discussion Paul, I can also add into the chaos that Windows Server x64 has known issues with reading environment variables (so in my case, for all MS4W x64 deployments, I have MS4W search known locations for the bundle, as a workaround for the code that fails to find the environ

Re: [gdal-dev] GDAL, Proj and cacert

2022-02-11 Thread Howard Butler
> On Feb 11, 2022, at 1:25 PM, Jeff McKenna > wrote: > > Thanks for this discussion Paul, I can also add into the chaos that Windows > Server x64 has known issues with reading environment variables What does this mean, specifically? Much of GDAL's behavior is controlled with environment var

Re: [gdal-dev] GDAL, Proj and cacert

2022-02-11 Thread Jeff McKenna
On 2022-02-11 3:29 p.m., Howard Butler wrote: On Feb 11, 2022, at 1:25 PM, Jeff McKenna mailto:jmcke...@gatewaygeomatics.com>> wrote: Thanks for this discussion Paul, I can also add into the chaos that Windows Server x64 has known issues with reading environment variables What does this

Re: [gdal-dev] GDAL, Proj and cacert

2022-02-11 Thread Howard Butler
> On Feb 11, 2022, at 1:41 PM, Jeff McKenna > wrote: > > Unfortunately this issue comes up very often, as you said, so much of our > stack relies heavily on environment variables. My hope is that in the long > run, the ini-style of settings can help battle this Windows Server x64 issue > (y

Re: [gdal-dev] GDAL, Proj and cacert

2022-02-11 Thread Greg Troxel
Howard Butler writes: >> On Feb 11, 2022, at 1:41 PM, Jeff McKenna >> wrote: >> >> Unfortunately this issue comes up very often, as you said, so much >> of our stack relies heavily on environment variables. My hope is >> that in the long run, the ini-style of settings can help battle this >>

Re: [gdal-dev] GDAL, Proj and cacert

2022-02-11 Thread Jeff McKenna
On 2022-02-11 3:48 p.m., Howard Butler wrote: On Feb 11, 2022, at 1:41 PM, Jeff McKenna mailto:jmcke...@gatewaygeomatics.com>> wrote: Unfortunately this issue comes up very often, as you said, so much of our stack relies heavily on environment variables.  My hope is that in the long run, t

Re: [gdal-dev] GDAL, Proj and cacert

2022-02-12 Thread Paul Harwood
O dear - I seem to stepped into an active fire zone :) My question was purely practical and about a problem that I experienced and that Even has answered - but in the wider context I might make the following points... - Working in Unity - which is .NET (or more precisely MONO) and x-platform

Re: [gdal-dev] GDAL, Proj and cacert

2022-02-12 Thread Even Rouault
Hi, - What would be nice would be an explicit way of setting the default for PROJ. Since version 7 - PROJ has an ini file but it does not seem to include the cacert file. I can see why that might be seen as being a potential security hole - although I would point out that the ini file DOES a