pacificclimate / esgf_download

Earth Systems Grid Federation data downloader
3 stars 0 forks source link

Add automatic creation of credentials.pem #1

Open basilveerman opened 10 years ago

basilveerman commented 10 years ago

Before downloads can be fetched, credentials must be generated using:

myproxyclient logon -s pcmdi9.llnl.gov -b -C ~/.esg/certificates -o ~/.esg/credentials.pem -l USERNAME

This isn't really necessary and can be incorporated into the esgf_fetch_downloads.py

sterlingbaldwin commented 8 years ago

I believe this functionality is built into the LogonManager from pyesgf.logon, just logon using the boostrap=True argument.

from pyesgf.logon import LogonManager
lm = LogonManager()
lm.logon_with_openid('username', 'password', bootstrap=True)
basilveerman commented 8 years ago

Exactly, thanks. We just don't currently use that option. I'd also want to pass it as a command line option rather than an unchangeable default.