Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use https for URL to GMT data server #1530

Closed
wants to merge 1 commit into from
Closed

Use https for URL to GMT data server #1530

wants to merge 1 commit into from

Conversation

PaulWessel
Copy link
Member

Run the encrypted service. Please test from outside hawaii.edu to make sure there are no side-effects since I cannot do it.

RUn the encrypted service.
@seisman
Copy link
Member

seisman commented Sep 7, 2019

Does it work for you? This is what I got:

$ gmt which -Gl @AFR.nc
gmtwhich [ERROR]: Unable to down file https://oceania.generic-mapping-tools.org/gmt_md5_server.txt
gmtwhich [ERROR]: Libcurl Error: Couldn't connect to server
gmtwhich [ERROR]: Libcurl Error: Couldn't connect to server
gmtwhich [ERROR]: File AFR.nc not found!

@PaulWessel
Copy link
Member Author

I cannot test until I go home. The libcurl function may need an extra setting to do this, perhaps?

@seisman
Copy link
Member

seisman commented Sep 7, 2019

I don't think it's libcurl settings. You can try visit the URL via you browser. http:https://oceania.generic-mapping-tools.org is redirected to http:https://www.soest.hawaii.edu/gmt/data/, with a 403 forbidden code. But https://oceania.generic-mapping-tools.org cannot be reached. Maybe https isn't enabled by the DNS provider?

@PaulWessel
Copy link
Member Author

Try in a few minutes. The DNS services forwards

oceania.generic-mapping-tools.org to https://www.soest.hawaii.edu/gmt/data

now (it was http). So not sure what happens if you try http. I guess rc4 will have http so it may break? But from the entry above there is no left-side http or https I can set.

@seisman
Copy link
Member

seisman commented Sep 7, 2019

Not working for me now. I'll test it later. I believe it's possible to have both http and https. Just like https://www.generic-mapping-tools.org and http:https://www.generic-mapping-tools.org.

@seisman
Copy link
Member

seisman commented Sep 7, 2019

I still cannot visit the https URL now.

@PaulWessel
Copy link
Member Author

I just now changed it back to http:

@PaulWessel
Copy link
Member Author

So the GMT server supports either one of course (I remove the local rays_11.txt between each try):

gmt set GMT_DATA_SERVER http:https://www.soest.hawaii.edu/gmt/data
gmt which -Gc @rays_11.txt -Vd
gmt set GMT_DATA_SERVER https://www.soest.hawaii.edu/gmt/data
gmt which -Gc @rays_11.txt -Vd

But doing the same with oceania fails, only http works.

@PaulWessel
Copy link
Member Author

Any thoughts on this @leouieda?

@PaulWessel
Copy link
Member Author

Closing this since does not work for https.

@PaulWessel PaulWessel closed this Sep 9, 2019
@seisman seisman deleted the httpsurl branch September 9, 2019 03:56
@leouieda
Copy link
Member

leouieda commented Sep 9, 2019

@PaulWessel I think it's a good idea to do https whenever possible. I'm sure SOEST IT can setup SSL for the data server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants