servisys / ispconfig_setup

ISPConfig autoinstaller and setup
GNU General Public License v3.0
507 stars 257 forks source link

problems making Certificate Request on Ubuntu 18.04 #279

Open bignellrp opened 5 years ago

bignellrp commented 5 years ago

Hi,

Tried the script yesterday on a fresh Ubuntu 18.04 install.

Got the following errors:

problems making Certificate Request 139920134062528:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:109:maxsize=2 Updating Freshclam Antivirus Database. Please Wait... ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log). ERROR: /var/log/clamav/freshclam.log is locked by another process

writing new private key to 'smtpd.key'

problems making Certificate Request 140684100542912:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:109:maxsize=2

Generating RSA private key, 4096 bit long modulus .++ .........................++ e is 65537 (0x010001) problems making Certificate Request 139700295160256:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:109:maxsize=2 req: Cannot open input file /usr/local/ispconfig/interface/ssl/ispserver.csr, No such file or directory req: Use -help for summary. writing RSA key

Not sure if this is related but also got an error trying to edit the roundcube config. No file or folder found as suggested:

"/var/lib/roundcube/plugins/ispconfig3_account/config/config.inc.php" [New DIRECTORY]

Only plugins i have are as follows:

/etc/roundcube/plugins /etc/roundcube/plugins/acl /etc/roundcube/plugins/additional_message_headers /etc/roundcube/plugins/database_attachments /etc/roundcube/plugins/emoticons /etc/roundcube/plugins/enigma /etc/roundcube/plugins/help /etc/roundcube/plugins/http_authentication /etc/roundcube/plugins/jqueryui /etc/roundcube/plugins/managesieve /etc/roundcube/plugins/new_user_identity /etc/roundcube/plugins/newmail_notifier /etc/roundcube/plugins/password /etc/roundcube/plugins/squirrelmail_usercopy /etc/roundcube/plugins/zipdownload /etc/roundcube/plugins/acl/config.inc.php /etc/roundcube/plugins/additional_message_headers/config.inc.php /etc/roundcube/plugins/database_attachments/config.inc.php /etc/roundcube/plugins/emoticons/config.inc.php /etc/roundcube/plugins/enigma/config.inc.php /etc/roundcube/plugins/help/config.inc.php /etc/roundcube/plugins/http_authentication/config.inc.php /etc/roundcube/plugins/jqueryui/config.inc.php /etc/roundcube/plugins/managesieve/config.inc.php /etc/roundcube/plugins/new_user_identity/config.inc.php /etc/roundcube/plugins/newmail_notifier/config.inc.php /etc/roundcube/plugins/password/config.inc.php /etc/roundcube/plugins/squirrelmail_usercopy/config.inc.php /etc/roundcube/plugins/zipdownload/config.inc.php

bignellrp commented 5 years ago

PS I found online that openssl doesnt like CN names longer than 64 chars but mine is only 27.

tdulcet commented 5 years ago

It looks like the problem is with your country name, which must be two characters. That is what the maxsize=2 is referring to in the error.

bignellrp commented 5 years ago

Thank you so much. That’s what it will be. I’m such an idiot. The example was. Country: example Italy. So I put England instead of EN. I’m away for a few days so I will confirm when I’m back.

Any ideas why the roundcube plugin for ISPConfig seems to be missing?

tdulcet commented 5 years ago

The ISPConfig plugin for Roundcube is only installed on Debian and CentOS.

bignellrp commented 5 years ago

Ah ok. Does that mean it doesn’t work on Ubuntu or just isn’t installed by the script at present?

tpaksu commented 3 years ago

Once I removed the space between = and the country code, the error disappeared. IT was

countryName_default = TR

then I set it to countryName_default =TR