Hi
Yes, I've just looked in that file and found the following:-
2022/11/25 19:29:16 INFO> Base.pm:256 EBox::Module::Base::saveConfig - Saving config for module: sysinfo
2022/11/25 19:29:16 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: sysinfo
2022/11/25 19:29:17 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command set -e
openssl req -new -x509 -batch -subj /CN=hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk/ -sha1 -days 3650 -key /var/lib/zentyal/conf/ssl/ssl.key > /var/lib/zentyal/conf/ssl/ssl.cert
chmod 0400 /var/lib/zentyal/conf/ssl/ssl.cert failed.
Error output: problems making Certificate Request
139645905614144:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:107:maxsize=64
Command output: .
Exit value: 1 at root command set -e
openssl req -new -x509 -batch -subj /CN=hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk/ -sha1 -days 3650 -key /var/lib/zentyal/conf/ssl/ssl.key > /var/lib/zentyal/conf/ssl/ssl.cert
chmod 0400 /var/lib/zentyal/conf/ssl/ssl.cert failed.
Error output: problems making Certificate Request
139645905614144:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:107:maxsize=64
Command output: .
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/uUJbWvl7TK.cmd 2> /var/lib/zentyal/tmp/stderr', 'set -e^Jopenssl req -new -x509 -batch -subj /CN=hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk/ -sha1 -days 3650 -key /var/lib/zentyal/conf/ssl/ssl.key > /var/lib/zentyal/conf/ssl/ssl.cert^Jchmod 0400 /var/lib/zentyal/conf/ssl/ssl.cert', 256, 'ARRAY(0x56410efa6af0)', 'ARRAY(0x56410e9e5508)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, 'openssl req -new -x509 -batch -subj /CN=hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk/ -sha1 -days 3650 -key /var/lib/zentyal/conf/ssl/ssl.key > /var/lib/zentyal/conf/ssl/ssl.cert', 'chmod 0400 /var/lib/zentyal/conf/ssl/ssl.cert') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('openssl req -new -x509 -batch -subj /CN=hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk/ -sha1 -days 3650 -key /var/lib/zentyal/conf/ssl/ssl.key > /var/lib/zentyal/conf/ssl/ssl.cert', 'chmod 0400 /var/lib/zentyal/conf/ssl/ssl.cert') called at /usr/share/perl5/EBox/Util/Certificate.pm line 63
EBox::Util::Certificate::generateCert('/var/lib/zentyal/conf/ssl', '/var/lib/zentyal/conf/ssl/ssl.key', 1, 'hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk.hsm-ad.nnnnnnnnnnnnnnnn.co.uk') called at /usr/share/zentyal/create-certificate line 29
2022/11/25 19:29:17 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command /usr/share/zentyal/change-hostname hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk hsm-ad.nnnnnnnnnnnnnnnn.co.uk failed.
Error output: problems making Certificate Request
139645905614144:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:107:maxsize=64
Command output: .
Exit value: 1 at root command /usr/share/zentyal/change-hostname hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk hsm-ad.nnnnnnnnnnnnnnnn.co.uk failed.
Error output: problems making Certificate Request
139645905614144:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:107:maxsize=64
Command output: .
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/AxbV5gJLrX.cmd 2> /var/lib/zentyal/tmp/stderr', '/usr/share/zentyal/change-hostname hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk hsm-ad.nnnnnnnnnnnnnnnn.co.uk', 256, 'ARRAY(0x5647d2c38be0)', 'ARRAY(0x5647d022a258)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/usr/share/zentyal/change-hostname hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk hsm-ad.nnnnnnnnnnnnnnnn.co.uk') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/usr/share/zentyal/change-hostname hsm-zen.hsm-ad.nnnnnnnnnnnnnnnn.co.uk hsm-ad.nnnnnnnnnnnnnnnn.co.uk') called at /usr/share/perl5/EBox/SysInfo.pm line 170
EBox::SysInfo::_setConf('EBox::SysInfo=HASH(0x5647d23237e0)') called at /usr/share/perl5/EBox/Module/Base.pm line 995
EBox::Module::Base::_regenConfig('EBox::SysInfo=HASH(0x5647d23237e0)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::SysInfo=HASH(0x5647d23237e0)') called at /usr/share/zentyal/initial-setup line 56
It looks like a permission error of some kind?
I called the installation script from a user with sudoer rights and I'm pretty sure I used the sudo command.... I am starting to doubt myself now though!
In the meantime I created my own key and certificate, placed them in the /var/lib/zentyal/conf/ssl/ and modified /usr/share/zentyal/stubs/core/nginx.conf.mas around line 115 to look for them (rather than a .pem file)
Thanks