Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • GnuTLS GnuTLS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 251
    • Issues 251
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gnutlsgnutls
  • GnuTLSGnuTLS
  • Issues
  • #956
Closed
Open
Created Mar 18, 2020 by Anderson Sasaki@ansasakiDeveloper

FIPS self-tests fail for algorithms disabled by configuration files

Description of problem:

This bug was originally reported in https://bugzilla.redhat.com/show_bug.cgi?id=1813384

When an algorithm tested during FIPS power-on self-tests is disabled by the used configuration file (e.g through crypto-policies in Fedora), the FIPS self-tests fail.

The suggested way to fix this issue is to postpone the loading of the configuration file during the library initialization

Version of gnutls used:

3.6.12

Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)

Fedora 31

How reproducible:

100%

Steps to Reproduce:

  • Create a configuration file which disables one of the tested algorithms. For example containing:
[overrides]
insecure-sig = DSA-SHA256

[priorities]
SYSTEM=NORMAL
  • Use that configuration and run an application forcing FIPS mode:
$ GNUTLS_SYSTEM_PRIORITY_FILE=config.cfg GNUTLS_FORCE_FIPS_MODE=1 certtool

Actual results:

Error in GnuTLS initialization: Error while performing self checks.
global_init: Error while performing self checks.

Expected results:

No error

Assignee
Assign to
Time tracking