Error during installation of certificate

Discussion in 'Installation/Configuration' started by NoBullMan, Dec 13, 2005.

  1. NoBullMan

    NoBullMan New Member

    Hi,
    I followed the document in www.howtoforge.com about installing a web server using Ubuntu Linux. I got to the part of installing ISPConfig, downloaded it and proceeded to install. But in step 3, I get:

    Step 3: Generating X.509 certificate for CA signed by itself [ca.crt]
    Certificate version (1 pr 3) [3]:
    bad number of days

    followed by a list of arguments, followed by:

    mkcert.sh:Error: Failed to generate self-signed CA certificate
    make[1]: *** [certificate] Error 1
    make[1]: Leaving directory `/tmp/install_ispconfig/compile_aps/apache_1.3.33/src'
    make: *** [certificate] Error 2
    ERROR: Could not make certificate for Apache
    cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directorymv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': No such file or directory
    tar: spamassassin.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `spamassassin': No such file or directory
    tar: uudeview.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `uudeview': No such file or directory
    tar: clamav.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `clamav': No such file or directory
    tar: aps.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    ./setup2: line 771: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!

    I thought it might be related to Postfix installation where I had to specify the number of days in:
    openssl x509 -req -days 3650 -in smtps.csr -signkey smtpd.key -out smtpd.crt

    I ran those commands again, restarted Postfix and tried installing ISPConfig again, but got the same errors.

    This is the last step (according to the document) in setting up a web server. Your help is greatly appreciated.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What did you enter here and in the prior questions during the certificate generation? If you accept the default values, it should work.
     
  3. NoBullMan

    NoBullMan New Member

    The only values I entered were the country code and state. I entered '.' for others. It did not complain about the first two steps:

    STEP 0: Decide the signature algorithm used for certificates
    The generated X.509 certificates can contain either
    RSA or DSA based ingredients. Select the one you want to use.
    Signature Algorithm ((R)SA or (D)SA) [R]:
    ______________________________________________________________________

    STEP 1: Generating RSA private key for CA (1024 bit) [ca.key]
    1403621 semi-random bytes loaded
    Generating RSA private key, 1024 bit long modulus
    ..................++++++
    ...++++++
    e is 65537 (0x10001)
    ______________________________________________________________________

    STEP 2: Generating X.509 certificate signing request for CA [ca.csr]
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    1. Country Name (2 letter code) [XY]:US
    2. State or Province Name (full name) [Snake Desert]:Virginia
    3. Locality Name (eg, city) [Snake Town]:.
    4. Organization Name (eg, company) [Snake Oil, Ltd]:.
    5. Organizational Unit Name (eg, section) [Certificate Authority]:.
    6. Common Name (eg, CA name) [Snake Oil CA]:.
    7. Email Address (eg, name@FQDN) [[email protected]]:.
    8. Certificate Validity (days) [365]:.
    ______________________________________________________________________

    STEP 3: Generating X.509 certificate for CA signed by itself [ca.crt]
    Certificate Version (1 or 3) [3]:
    bad number of days
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    As you where asked for certificate validity, you entered a dot, but it must be a number like "365" days
     
  5. NoBullMan

    NoBullMan New Member

    Doh!

    Thanks a lot. I should be more careful. It is working fine now.
     

Share This Page