Revision bf9c3717
Added by Remy Menard over 12 years ago
| IoTa-Installer/lib/epcilon.py | ||
|---|---|---|
|
("Enter the EpcILoN database login", "epcilon", "db_login", {}),
|
||
|
("Enter the EpcILoN database password", "epcilon", "db_password", {}),
|
||
|
("Enter the URL to the Epcis (or ETa) Query service", "epcilon", "subscription_url", {}),
|
||
|
("Enter the URL to the DS (or DSeTa)", "epcilon", "ds_url", {})
|
||
|
("Enter the URL to the DS (or DSeTa)", "epcilon", "ds_url", {}),
|
||
|
("Enter the keystore file name (PEM format)", "cert", "pem_keystore", {}),
|
||
|
("Enter the keystore password", "cert", "password", {}),
|
||
|
("Enter the truststore file name (PEM format)", "cert", "pem_truststore", {})
|
||
|
# EpcILoN is only a DSeTa client for now
|
||
|
# ("Enter the DS client login (not used by DSeTa)", "ds", "login", {}),
|
||
|
# ("Enter the DS client password (not used by DSeTa)", "ds", "password", {})
|
||
|
], [
|
||
|
("application",
|
||
|
{ "query-callback-address": ("epcilon", "callback_url"),
|
||
|
"identity": ("epcilon", "identity"),
|
||
|
"publish": "true",
|
||
|
"pks-filename": ("cert", "jks_keystore"),
|
||
|
"pks-filename": ("cert", "keystore"),
|
||
|
"pks-password": ("cert", "password"),
|
||
|
"trust-pks-filename": ("cert", "truststore"),
|
||
|
"trust-pks-password": ("cert", "trustpassword"),
|
||
| ... | ... | |
|
|
||
|
|
||
|
def postConfigure(self):
|
||
|
self.setURL()
|
||
|
if self.cget("subscription_url").startswith("https"):
|
||
|
self.setSecuredURL()
|
||
|
else:
|
||
|
self.setURL()
|
||
|
self.cset("callback_url", self.cget("url") + "StandingQueryCallbackServlet")
|
||
|
self.cset("db_jndi", "EPCILONDB")
|
||
|
|
||
| ... | ... | |
|
installer.DBWebAppInstaller.postInstall(self)
|
||
|
utils.putWait("Subscribing to the Epcis")
|
||
|
url = self.cget("url") + "SubscribedServlet"
|
||
|
if utils.sh_exec("wget -qO /dev/null " + url):
|
||
|
cmd = "curl"
|
||
|
if url.startswith("https"):
|
||
|
keystore = CONFIG.get("cert", "pem_keystore")
|
||
|
keystore_pwd = CONFIG.get("cert", "password")
|
||
|
truststore = CONFIG.get("cert", "pem_truststore")
|
||
|
cmd += " --cert \"" + keystore + "\":\"" + keystore_pwd + "\" --cacert \"" + truststore + "\""
|
||
|
cmd += " " + url
|
||
|
if utils.sh_exec(cmd):
|
||
|
utils.putDoneOK()
|
||
|
else:
|
||
|
utils.putDoneFail()
|
||
Also available in: Unified diff
Version 1.99
- a few bugs fixed!
- new testing application to capture events
- new options to the command line to configure the public/private keys
for TLS and for signature
- new method more accurate than "traceEPC": the events are sorted by
EPCIS
- New options added to the command line
- user can be identified by alias, if the DN of his certificate is
incompatible with the LDAP directory
- new shell script to configure the LDAP directory (same
functionnalities as IoTa-Installer)
- installs and configures LaMBDa
- finer certificate mangagement
- EpcILoN correctly subscribe with TLS to ETa
- new figure for LaMBDa
- shows data flows between PHI and YPSilon
- sets DS and DSeTa in different schemas