/altnet

Allow Uniface to use the network connector specified by the /dnp switch, even if it is different than the one used to originally connect to the Uniface Router.

/altnet

Use

Use with the /dnp switch in the userver command lines defined in the [SERVERS] section of the Uniface Router assignment file.

Description

Use the /altnet switch when the connector specified by the /dnp switch is different to the one used by the client to connect to the Uniface Router.

Enabling the use of Multiple Network Connectors

The client assignment file contains the following settings for connecting to a Uniface Server:

;client.asn
[NET_SETTINGS]
Srv1Cert  verify_server=yes, ca_cert=usys:myca1.crt Callout 1

[PATHS]
$SRV1      TLS:server1.mydomain+13002:Srv1Cert|user|password|MyUst Callout 2

The assignment file of the Uniface Router contains the following settings:

; urouter.asn

[NET_SETTINGS]
Srv1Cert  verify_server=yes, srv_cert=usys:myserver1.crt, %\
          srv_key=usys:myserver1.key Callout 1

[SERVERS]
MyUST=userver.exe /asn=userver.asn /dnp=TCP:+13001 Callout 3 /altnetCallout 4

To use both the TCP and TLS connector, the Uniface Router must be started from the command line to listen on two ports. (It is not possible to specify multiple listening ports using $DEFAULT_NET. ) For example:

urouter TLS:+13001:Srv1Cert TCP:+13001
  1.  The TLS connection profile enables server verification, so this is specified in both the client and Uniface Router assignment files.
  2.  The connection profile Srv1Cert is used to define the connection parameters for the TLS connector. The profile name must be the same in both the client and Uniface Router assignment files, and the profile must match, so that the CA certificate on the client verifies server certificate and public key of the Uniface Router.
  3.  The /dnp path uses the insecure TCP driver.

    This means the connection between the Uniface Router and the Uniface Server will not be encrypted or otherwise secured.

  4.  Because the default connector and the connector for the Uniface Server are not the same, the /altnet switch must also specified.

Related Topics