Skip to main content
Skip table of contents

White paper – Secret Key

The Secret key is used to secure communication between the WebService and Nexus if user authentication has not yet taken place. This protected communication includes notifications, ticket caching, and other functions. These services cannot be executed without setting up this secret key.

Configuration

To configure the secret key, first start the WebService Connection Manager and navigate to Secret Key tab.

IMPORTANT NOTE:
Clicking the button replaces a previously generated key.

Starting with version 2.0.2503.215 in the c-entron WebService Connection Manager, the following changes apply:

If the c-entron WebService Connection Manager is open while the WebService is active, is in the tab "secret key" the button "New secret key" disableda notice informs you that the service will initially stopped must be done before a new secret key can be created.



After the service has been stopped, you can generate a new secret key. The Copy function disableda message will also appear indicating that the new key can be created by clicking on "Save" must be accepted. The storage takes place without, that the Connection Manager is automatically closed.



Note: Whenever the service stopped is and you on "Save" clicking – regardless of whether with or without "Exit" – a query automatically appears asking whether the service restarted become

After saving, the new secret key is immediately available to you. You can copy and in Nexus insert. The key will be placed there immediately recognized correctly.

Conclusion:
There is now a new button "Save (without exiting)" and a binding procedure for correct reconstruction and use of the secret key.

Insert via appsettings.Production.json

The setup wizard can only be accessed from the Nexus server via localhost:8050, where the wizard will then appear.

Alternatively, you can also copy the key from the WebService Connection Manager and paste it directly into appsettings.Production.json (usually located in the installation directory—example path: C:\Program Files (x86)\c-entron software gmbh\c-entron Nexus), in the "SecretKey" section within the quotation marks.



Then restart the WebService and Nexus services once.

Prior to version 2.0.2503.215:

To configure the secret key, first start the WebService Connection Manager and navigate to Secret Key tab.

Here you can click on New secret key click to generate a new key. Once the new key has been generated, you can click on the Copy button click to copy the key to your clipboard.

IMPORTANT NOTE:
Clicking the button replaces a previously generated key.

Once the key has been generated and copied, you can paste it into the following section of the Setup wizards in Nexus insert. (If this does not open, you can append /setup-wizard to your Nexus URL.)

The validity of the key is checked when the text field is changed, with a check mark indicating a valid key.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.