Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation script fails at "Creating SSL Certificate" if network interface has multiple addresses #650

Open
thatguyinoz opened this issue Sep 28, 2024 · 0 comments

Comments

@thatguyinoz
Copy link

Describe the bug
When running the installer.sh
all goes well until


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! The installer was not able to run all the way to the end as   !!
!! something has caused it to fail. The following few lines are  !!
!! from the error log file which might help us figure out what's !!
!! wrong. Please add this information when reporting an error.   !!
!! As well you might want to take a look at the full error log   !!
!! in /home/xxxx/fogproject/bin/error_logs/fog_error_1.5.10.1615.log !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State                                                                                                                                                                                                                                             ]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits                                                                                                                                                                                                                                              Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN                                                                                                                                                                                                                                              or YOUR name) []:Email Address []:req: Error on line 7 of config file "/opt/fog                                                                                                                                                                                                                                             /snapins/ssl//req.cnf"
40F74AB66F7E0000:error:07000065:configuration file routines:def_load_bio:missing                                                                                                                                                                                                                                              equal sign:../crypto/conf/conf_def.c:513:HERE-->line 7

To Reproduce
Steps to reproduce the behavior:

  1. run the installer script

Expected behavior
Installer should complete

Screenshots


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! The installer was not able to run all the way to the end as   !!
!! something has caused it to fail. The following few lines are  !!
!! from the error log file which might help us figure out what's !!
!! wrong. Please add this information when reporting an error.   !!
!! As well you might want to take a look at the full error log   !!
!! in /home/peter/fogproject/bin/error_logs/fog_error_1.5.10.1615.log !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State                                                                                                                                                                                                                                             ]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits                                                                                                                                                                                                                                              Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN                                                                                                                                                                                                                                              or YOUR name) []:Email Address []:req: Error on line 7 of config file "/opt/fog                                                                                                                                                                                                                                             /snapins/ssl//req.cnf"
40F74AB66F7E0000:error:07000065:configuration file routines:def_load_bio:missing                                                                                                                                                                                                                                              equal sign:../crypto/conf/conf_def.c:513:HERE-->line 7

Software:

  • FOG Version: 1.5.10.1615 Installer/Updater
  • FOS kernel N/A
  • OS: Ubuntu 22.04.4 LTS

Additional context
if multiple ip addresses are set on the primary network interface, the extra IP address causes the function
openssl req -new -sha512 -key /opt/fog/snapins/ssl//.srvprivate.key -out /opt/fog/snapins/ssl//fog.csr -config /opt/fog/snapins/ssl//req.cnf
to fail as req.cnf has extra lines in it.

User mitigation:
(temporarily) removing the additional IP address, will allow the script to complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant