Current time: 11-26-2024, 05:41 AM Hello There, Guest! (LoginRegister)


Post Reply 
perl troubles with vhcs
Author Message
KeNt Offline
Junior Member
*

Posts: 37
Joined: Jan 2007
Reputation: 1
Post: #1
perl troubles with vhcs
code] ./vhcs2-vrl-traff
If specified by -literal_key, then the key length must be equal to the chosen cipher's key length of 56 bytes at /var/www/vhcs2/engine/traffic/../vhcs2_common_code.pl line 1443
Compilation failed in require at ./vhcs2-vrl-traff line 53.[/code]


Code:
cat vhcs2_common_code.pl | head -n1460 | tail -n20
    }

    my $cipher = Crypt::CBC -> new(
                                    {
                                        'key'             => $main::db_pass_key,
                                        'cipher'          => 'Blowfish',
                                        'iv'              => $main::db_pass_iv,
                                        'regenerate_key'  => 0,
                                        'padding'         => 'space',
                                        'prepend_iv'      => 0
                                    }
                                  );

    my $decoded = decode_base64("$pass\n");

    my $plaintext = $cipher -> decrypt($decoded);


    push_el(\@main::el, 'decrypt_db_password()', 'Ending...');

debian sarge + backports + vhcs2.4.7.1
failed up after updates
how to fix that?
05-17-2007 10:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
grungy Offline
Junior Member
*

Posts: 190
Joined: Dec 2006
Reputation: 6
Post: #2
RE: perl troubles with vhcs
This is not the place to search support for VHCS.
05-17-2007 10:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
grungy Offline
Junior Member
*

Posts: 190
Joined: Dec 2006
Reputation: 6
Post: #3
RE: perl troubles with vhcs
Try ispCP:

http://downloads.sourceforge.net/ispcp/i...2c.tar.bz2
05-17-2007 10:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
KeNt Offline
Junior Member
*

Posts: 37
Joined: Jan 2007
Reputation: 1
Post: #4
RE: perl troubles with vhcs
sorry
simple i mean this forum so smartly for answers
the server is up and that is a problem
no time for reinstall
just help with perl and move topic to right place

p.s. sorry for bad english
05-18-2007 12:09 AM
Visit this user's website Find all posts by this user Quote this message in a reply
KeNt Offline
Junior Member
*

Posts: 37
Joined: Jan 2007
Reputation: 1
Post: #5
RE: perl troubles with vhcs
when upgrade script to migrate from vhcs to ispcp is done i'm will migrate to ispcp
05-18-2007 12:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: perl troubles with vhcs
The subroutine in ispcp is this one:
Code:
sub encrypt_db_password {

    my ($pass) = @_;

    push_el(\@main::el, 'encrypt_db_password()', 'Starting...');

    if (!defined($pass) || $pass eq '') {

        push_el(\@main::el, 'encrypt_db_password()', 'ERROR: Undefined input data ($pass)...');

        return (1, '');

    }

    my $cipher = Crypt::CBC -> new(
                                    {
                                        'key'             => $main::db_pass_key,
                                        'keysize'                 => 32,
                                        'cipher'          => 'Blowfish',
                                        'iv'              => $main::db_pass_iv,
                                        'regenerate_key'  => 0,
                                        'padding'         => 'space',
                                        'prepend_iv'      => 0
                                    }
                                  );

    my $ciphertext = $cipher->encrypt($pass);

    my $encoded = encode_base64($ciphertext); chop($encoded);

    push_el(\@main::el, 'encrypt_db_password()', 'Ending...');

    return (0, $encoded);

}

so, if you try the line "keysize" in your vhcs, maybe it helps...
(This post was last modified: 05-18-2007 12:29 AM by joximu.)
05-18-2007 12:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #7
RE: perl troubles with vhcs
keysize should help. Had the same error on my old vhcs server. Tongue
05-18-2007 01:27 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)