NETMASTER API service and Web portal fails with Bad Request
search cancel

NETMASTER API service and Web portal fails with Bad Request

book

Article ID: 225178

calendar_today

Updated On:

Products

NetMaster Network Management for TCP/IP

Issue/Introduction

I finally installed LU01020 and enabled AT-TLS for Netmaster API service. Task seems to start ok but when trying to use Swagger UI to connect to it, it reports error of

Bad Request
This combination of host and port requires TLS.

Checked through the task didn't find any meaningful information on what's wrong and how to proceed. 

 

Environment

Release : 12.2

Component : CA NetMaster Network Management for TCP/IP

Resolution

The config shows
spring.profiles.active: https,zos
server:
    address: 0.0.0.0
    port: 3001
    attls:
        required: TRUE
    ssl:
        keyAlias: Solve Lab Server 2023
        enabled: FALSE

Our doc regarding the spring.profiles.active property here states that if you are using AT-TLS to enable secure connectivity, make sure to remove the https value from this property.

If this is not done, the https value overrides the value of ssl.enabled and sets it to TRUE.
AT-TLS is attempting to use HTTP to communicate with our server over an HTTPS connector, which will then fail.