Install SSL key for {{device}}

{% if not deviceKey and not deviceCertificate %} {% set caPlugin = igor.plugins._getPluginObject(pluginName="ca", token=token) %} {% if caPlugin %} {% set deviceKey, deviceCertificate = caPlugin._generateKeyAndSign(names=[device, "192.168.4.1"], keysize=1024, token=token) %} {% else %}

Error: The Igor ca plugin is needed to sign certificates for iotsa devices.

{% endif %} {% endif %} {% if deviceKey and deviceCertificate %} {% set ds1 = pluginObject._getorset(device, module="config", protocol=protocol, credentials=credentials, port=port, noverify=noverify, token=token, httpsKey=deviceKey) %} {% set ds2 = pluginObject._getorset(device, module="config", protocol=protocol, credentials=credentials, port=port, noverify=noverify, token=token, httpsCertificate=deviceCertificate, reboot=1) %} {% set message = ds1.message or ds2.message %} {% if message %}

User intervention required: {{message}}

{% else %} {% set _ = pluginObject._getpersist(device, clearNoverify=True) %}

It seems installing the certificate and key was successful. Re-enabled certificate verification. Visit {{device}} status page to test.

{% endif %} {% else %}

Both Key and Certificate must be specified.

{% endif %}
Return to {{device}} device status page.
{% if returnTo %} Return to {{returnTo}}.
{% endif %} Return to iotsa device setup page.
Return to Igor homepage