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

OSX ESMF authentication #173

Closed
dnadeau4 opened this issue Sep 30, 2017 · 2 comments
Closed

OSX ESMF authentication #173

dnadeau4 opened this issue Sep 30, 2017 · 2 comments

Comments

@dnadeau4
Copy link
Contributor

libnetcdf needs to pass "SSL.CERTIFICATEPASSWORD" for OSX.
The certificate need to be add in the keychain.

https://github.com/Unidata/netcdf-c/blob/master/libdap4/d4curlflags.c#L10-L23

cmd="echo ${ESGF_PWD} | myproxyclient logon -s esgf-node.llnl.gov -p 7512 -t 12 -S -b -l ${ESGF_USER} -o /Users/distiller/.esg/esgf.cert "
eval $cmd

cmd="openssl pkcs12 -export -inkey /Users/distiller/.esg/esgf.cert -in /Users/distiller/.esg/esgf.cert -name esgf  -out /Users/distiller/.esg/esgf.p12 -passout pass:esgf"
$cmd

cmd="sudo security import /Users/distiller/.esg/esgf.p12 -A -P esgf -k /Library/Keychains/System.keychain"
echo $cmd
$cmd

cmd="sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" /Users/distiller/.esg/esgf.cert" 
echo $cmd
$cmd


cmd="cp tests/dodsrccircleci /Users/distiller/.dodsrc"
echo $cmd
$cmd
@dnadeau4 dnadeau4 self-assigned this Oct 10, 2017
@dnadeau4
Copy link
Contributor Author

The issue is that conda-forge libnetcdf is using the system CURL on OSX.
conda-forge/libnetcdf-feedstock#25

@dnadeau4
Copy link
Contributor Author

dnadeau4 commented Jan 9, 2018

This is fix in 2.12.

@dnadeau4 dnadeau4 closed this as completed Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant