Hello,
I have created new Perl Module. In that, I have created subfunction to load details of certificates.
When i am calling the module and subfunction to my view file, it throws an error as below
"Failed to load module “CertificateDetails”: "
Module code :
View file code :
Can anyone guide me what's wrong on this, please?
Thanks in advance!
I have created new Perl Module. In that, I have created subfunction to load details of certificates.
When i am calling the module and subfunction to my view file, it throws an error as below
"Failed to load module “CertificateDetails”: "
Module code :
Code:
sub load_certificate_details {
my ( $args, $result ) = @_;
my @certdetails;
my $cert_data = Crypt::OpenSSL::X509->new_from_file('cert.pem');
push @certdetails, $cert_data->issuer();
push @certdetails, $cert_data->email();
$result->data( \@certdetails );
return 1;
}
Code:
$certficate_details = $cpanel->uapi(
'CertificateDetails', 'load_certificate_details'
);
Thanks in advance!
Last edited by a moderator: