I am looking for a way of retrieving authentication information for OPC connections I have configured
Is there somewhere I could recover the password for an OPC connection I have configured ?
Thank you in advance for your help !
I am looking for a way of retrieving authentication information for OPC connections I have configured
Thank you in advance for your help !
Do you need to do this one time or regularly as part of a script?
It would be a one time thing !
Well the easiest thing would be to use Kindling or any other SQLite DB viewer to open the config.idb file and look at the passwords in the "OpcUaConnectionSettings" table. The password should be stored as a string of hex encoded characters.
Then you can write a script like this:
from com.inductiveautomation.ignition.common import GatewaySec
# replace with value from DB
print GatewaySec.decrypt("ABCDABCDABCD")
It was exactly what I was looking for, thank you very much Kevin !