Help for this page

Select Code to Download


  1. or download this
    my $s_pdf_file_to_sign = 'pdf_file_to_sign';
    my $s_private_key_file = 'private_key_file';
    my $s_cert_file = 'certificate_file';
    
  2. or download this
    my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
            $atime,$mtime,$ctime,$blksize,$blocks) = stat $s_pdf_to_sign;
    open FILE, "<$s_pdf_to_sign" or die "no such file";
    ...
    my $s_pdf_to_sign_string;
    read FILE, $s_pdf_to_sign_string, $size;
    close FILE;
    
  3. or download this
    ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
            $atime,$mtime,$ctime,$blksize,$blocks) = stat $s_private_key;
    open FILE, "<$s_private_key" or die "no such file";
    ...
    my $s_private_key_content;
    read FILE, $s_private_key_content, $size;
    close FILE;
    
  4. or download this
    my $s_private_key_string = $s_private_key_content;
    my $oref_rsa_priv = Crypt::OpenSSL::RSA->new_private_key($s_private_ke
    +y_content) or die "new_private_key error";