openwsman: owsmangencert.sh generates error

This document (000019729) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 SP2

Situation

When a user tries to create a selfsigned certificate for an openwsman server using the owsmangencert.sh script, the script gathers all the user provided information and finally fails with the following error message:

Cannot write random bytes:
139974501831104:error:2407007A:random number generator:RAND_write_file:Not a regular file:crypto/rand/randfile.c:183:Filename=/dev/random

Resolution

Workaround:
Comment out the RANDFILE parameters inside /etc/openwsman/ssleay.cnf and /etc/openwsman/owsmangencert.sh

This issue is resolved in the openwsman update SUSE-SLE-Module-Server-Applications-15-SP2-2020-2659 (released Sep 16 2020)

Cause

The random number generator has been redesigned in openssl-1.1.1, it automatically reseeds itself using trusted system entropy resources, so setting RANDFILE is no longer necessary and its use is discouraged.
openwsman has not yet adopted this change in its config files.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000019729
  • Creation Date: 06-Oct-2020
  • Modified Date:06-Oct-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center