diff options
Diffstat (limited to 'src/client.c')
| -rw-r--r-- | src/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c index 011792e..97a9289 100644 --- a/src/client.c +++ b/src/client.c @@ -339,7 +339,10 @@ main (int argc, char **argv) UA_Client *client = UA_Client_new (); UA_StatusCode retval; - if (sec.certPath) + if (op == OP_DOWNLOAD_CERT) + retval = createUnsecureClientConfig (UA_Client_getConfig (client), + applicationUri, NULL); + else if (sec.certPath) retval = createSecureClientConfig (UA_Client_getConfig (client), applicationUri, &sec, &auth); else |
