SonicOS 8 Device Settings

Table of Contents

Enabling SonicOS API and Configuring Authentication Methods

You can use SonicOS API as an alternative to the SonicOS Command Line Interface (CLI) for configuring selected functions. To do so, you must first enable SonicOS API. .

In SonicOS 8.2.3 and later versions, when FIPS 140-3 mode is enabled, only the SHA-256, SHA-384, and SHA-512 signature algorithms are supported. MD5 and SHA-1 are disabled. RSA key sizes must be 2048 bits or higher; the 1024-bit and 1536-bit options are not available in FIPS mode. For ECDSA certificates, only NIST-approved curves (P-256, P-384, and P-521) are supported.

To enable SonicOS API and configure client authentication

  1. Navigate to Device | Settings > Administration.
  2. Click the SonicOS API tab.
  3. Turn on the SonicOS API toggle.
  4. Configure the authentication methods and access controls that you need:
    1. Authentication Methods:
    2. Settings Description
      RFC-7616 HTTP Digest Access authentication Enables RFC 7616 digest access authentication for API requests.
      Digest algorithms

      Select the cryptographic hash algorithms supported for digest authentication:

      • SHA-256
      • MD5
      Integrity protection

      Controls whether message integrity protection (quality of protection, qop) is used:

      • Disabled: Integrity protection is not used.
      • Allowed: Accepts both standard authentication and integrity-protected requests.
      • Enforced: Requires message integrity protection on all digest requests.
      Use session variant (password hashes in place of passwords)

      Configure the use of session-based keying:

      • Disabled: Session variant is not used.
      • Allowed: Accepts both standard digest and session-based variants.
      • Enforced: Requires session-based hashed authentication.
    3. CHAP & Basic Authentication:
    4. Settings Description
      CHAP authentication Enables Challenge Handshake Authentication Protocol (CHAP) for API access.
      RFC-2617 HTTP Basic Access authentication

      Enables legacy RFC 2617 HTTP Basic authentication. Basic authentication sends credentials as Base64-encoded text.

      Use Basic authentication only over HTTPS. Base64 is an encoding, not encryption.

    5. Public Key Authentication:
    6. Settings Description
      Public Key authentication Enables public key authentication for the SonicOS API.
      RSA modulus (key/cipher size in bits) Specify the RSA key size in bits. The default value is 1024 bits in non-FIPS mode. In FIPS 140-3 mode, 1024-bit and 1536-bit options are not permitted; the minimum key size is 2048 bits.
      RSA padding type

      Select the RSA padding scheme:

      • PKCS #1 v1.5: Legacy RSA padding.
      • PKCS #1 v2.0 OAEP: Optimal Asymmetric Encryption Padding.
      OAEP hash method

      Select the hashing algorithm used by OAEP:

      • SHA1
      • SHA256
      • Other (specify custom hash algorithm)

      This field is available only when the RSA padding type is set to OAEP.

      OAEP mask (MGF1) method

      Select the Mask Generation Function (MGF1) hash algorithm:

      • SHA1
      • SHA256
      • Other (specify custom mask hash)

      This field is available only when the RSA padding type is set to OAEP.

    7. Session Security & Token Validation:
    8. Settings Description
      Session security using RFC-7616 Digest authentication Enforces session security validation using RFC-7616 Digest parameters across active API sessions.
      Maximum nonce use

      Specify the maximum number of times a server nonce can be reused before renegotiation is required. A nonce (number used once) is a unique, randomly generated cryptographic token issued by the firewall during RFC-7616 HTTP Digest Access Authentication to protect against replay attacks. Allowing limited reuse reduces session overhead for consecutive API requests.

      • Default: 10
      • Range: 1 to 65535
      Non-GUI Management Login Bearer Token Session Check

      This option is enabled by default. When enabled, POST /api/sonicos/auth returns a bearer token in the response that you must send in the Authorization: Bearer header on every subsequent API request. Requests without this token are rejected with a 401 status code, including requests that repeat HTTP Digest authentication.

  5. Click Accept.