Bug 241701 - FreeBSD Handbook 13.6.1 obsolete code
Summary: FreeBSD Handbook 13.6.1 obsolete code
Status: Closed Overcome By Events
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Sergio Carlavilla Delgado
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-04 07:56 UTC by Clay Daniels
Modified: 2023-09-27 17:04 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clay Daniels 2019-11-04 07:56:14 UTC
From: FreeBSD Handbook 13.6.1 OpenSSL/Generating Certificates:

openssl genrsa -rand -genkey -out cert.key 2048

Can't load -genkey into RNG
34371158016:error:2406F079:random number generator:RAND_load_file:Cannot open file:/usr/src/crypto/openssl/crypto/rand/randfile.c:98:Filename=-genkey

Man OPENSSL(1)
genrsa - Generation of RSA Private Key. Superseded by genpkey(1).

My solution:
root@r7bsd:~/keys_selfsign # openssl genpkey -algorithm RSA -out cert.key -pkeyopt rsa_keygen_bits:2048
........................+++++
Comment 1 Sergio Carlavilla Delgado freebsd_committer freebsd_triage 2023-09-27 17:04:44 UTC
I'm gonna close this PR as overcome by events.
We upgraded the chapter in this commit: https://cgit.freebsd.org/doc/commit/?id=99333306