App-CamelPKI
view release on metacpan or search on metacpan
'Test::Pod::Coverage' => 1.04,
'File::Which' => 0,
'File::Slurp' => 0,
'File::Find' => 0,
'Cwd' => 0,
'Errno' => 0,
'LWP::Simple' => 0,
'LWP::UserAgent' => 0,
# 0.20 release comes with UTF-8 bugfixes :
'Convert::ASN1' => 0.20,
'IO::Socket::SSL' => 0, # App::CamelPKI::SysV::Apache
'Catalyst::View::TT' => 0,
'HTTP::Request::Form' => 0,
'HTML::TreeBuilder' => 0,
'HTTP::Request::Common' => 0,
'HTTP::Request' => 0,
'URI::URL' => 0,
'Module::ScanDeps' => 0,
},
add_to_cleanup => [ '*.gz', 'Build', 'META.yml' ],
create_makefile_pl => 'passthrough',
File::Spec::Functions: 0
File::Spec::Unix: 0
File::Temp: 0
File::Which: 0
FindBin: 0
HTML::TreeBuilder: 0
HTTP::Request: 0
HTTP::Request::Common: 0
HTTP::Request::Form: 0
IO::File: 0
IO::Socket::SSL: 0
LWP::Simple: 0
LWP::UserAgent: 0
Module::Build: 0
Module::Build::Compat: 0
Module::ScanDeps: 0
Test::Builder: 0
Test::Group: 0
Test::More: 0
Test::NoBreakpoints: 0
Test::Pod::Coverage: 1.04
So, to resume, under Ubuntu, for minimum requirements (tests won't all be runned) :
In this case, the php front-end won't be usable with this apache instance(which is, by the way, not a good idea).
#apt-get install apache2 apache2-threaded-dev libapache2-mod-perl2 build-essential libnet-ssleay-perl libssl-dev
If you want to run the entire test suite, you need some other functionnalities. Install the with :
#apt-get install libapache2-mod-php5 php5-common php5-cli php5-curl
2. Installation of the Perl Modules :
You have to install some perl modules from CPAN in order to make work the application.
cpan > install Module::Build File::Slurp MIME::Base64 Error DateTime Sys::Hostname IO::Socket::INET Config::General Config::Tiny XML::Simple Catalyst Catalyst::Plugin::ConfigLoader Catalyst::Plugin::Static::Simple Catalyst::Action::RenderView Catalys...
And if you want to run the full test suite and for devs environments:
cpan> install Module::ScanDeps Test::NoBreakpoints Test::Pod::Coverage Catalyst::Helper
For the moment, App::Crypt::OpenSSL::CA won't install because of failing tests. These tests fails
because they aren't coded. You can install it by hand or by forcing it, making sure that only tests 12 and 13 of
lib/Crypt/OpenSSL/CA are failing.
3. Extract the App-CamelPKI archive and create your own app_camelpki.yml (a sample can be found 'app_camelpki.yml.sample').
lib/App/CamelPKI/SysV/Apache.pm view on Meta::CPAN
write_file(catfile($phpdir, "phpinfo.php"), <<"PHPINFO");
<?php
phpinfo();
?>
PHPINFO
my $phpinfo = LWP::Simple::get
("https://localhost:12345/t/php/phpinfo.php");
like($phpinfo, qr/www\.php\.net/);
};
use IO::Socket::SSL;
use LWP::UserAgent;
use App::CamelPKI::Test qw(http_request_prepare http_request_execute);
test "SSL client w/ certificate" => sub {
my $webserver = App::CamelPKI::SysV::Apache->load($directory);
unless ($webserver->test_php_directory) {
$webserver->test_php_directory($phpdir);
$webserver->stop();
}
$webserver->start();
t/lib/App/CamelPKI/Test.pm view on Meta::CPAN
use Test::Builder;
use Test::More;
use Test::Group;
use File::Find;
use File::Path ();
use File::Spec::Functions qw(catfile catdir);
use File::Slurp;
use File::Temp ();
use POSIX ":sys_wait_h";
use File::Which ();
use IO::Socket::SSL;
use LWP::UserAgent;
use HTTP::Request;
#pour formulaires
use URI::URL;
use HTTP::Request::Common;
use HTTP::Request::Form;
use HTML::TreeBuilder 3.0;
use base 'Exporter';
BEGIN {
( run in 0.487 second using v1.01-cache-2.11-cpan-4d50c553e7e )