Problem:
After initial installation of Foreman/Katello on a new Rocky 8 server I have running into an issue trying to generate the certs to add a smart proxy. The foreman-proxy-certs-generate command keeps generating the following errors:
Rotated: katello-server-openssl.cnf → katello-server-openssl.cnf.1
Traceback (most recent call last):
File “/bin/katello-ssl-tool”, line 11, in
load_entry_point(‘Katello-Certs-Tools==2.9.0’, ‘console_scripts’, ‘katello-ssl-tool’)()
File “/usr/lib/python3.6/site-packages/katello_certs_tools/katello_ssl_tool.py”, line 955, in main
_main()
File “/usr/lib/python3.6/site-packages/katello_certs_tools/katello_ssl_tool.py”, line 921, in _main
genServerCertReq(DEFS, options.verbose)
File “/usr/lib/python3.6/site-packages/katello_certs_tools/katello_ssl_tool.py”, line 405, in genServerCertReq
configFile.save(d, caYN=0, verbosity=verbosity)
File “/usr/lib/python3.6/site-packages/katello_certs_tools/sslToolConfig.py”, line 730, in save
fo.write(openssl_cnf)
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 607-609: ordinal not in range(128)
Expected outcome:
The certs tar bundle for the new Smart Proxy is successfully generated to use in installing the new Smart Proxy
Foreman and Proxy versions:
Foreman 3.6.1 / Katello 4.8.1
Foreman and Proxy plugin versions:
Distribution and version:
Other relevant data:
Everything else about the installation is working fine. I have added content, created content views, added a couple RHEL subscriptions, registered some hosts, etc.