GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SMIME::JA (3)

.ds Aq ’

NAME

Crypt::SMIME::JA - S/MIMEXXXXXXXXXXXXX

CONTENTS

XX



  use Crypt::SMIME;

  my $plain = <<EOF;
  From: alice@example.org
  To: bob@example.com
  Subject: Crypt::SMIME test

  This is a test mail. Please ignore...
  EOF

  my $smime = Crypt::SMIME->new();
  $smime->setPrivateKey($privkey, $crt);
  # $smime->setPublicKey([$icacert]); # if need be.

  my $signed = $smime->sign($plain);
  print $signed;



XX

S/MIMEXXXXXXXXXXXXXXXXXXXX libcrypto (<http://www.openssl.org>) XXXX

XXXXXX

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
NO_CHECK_CERTIFICATE check() XXXX
FORMAT_SMIME
FORMAT_ASN1
FORMAT_PEM extractCertificates() XXXX
:constants XXXXXXXXXXXXXXXXX

XXXX

new()


  my $smime = Crypt::SMIME->new();



XXXX

setPrivateKey()


  $smime->setPrivateKey($key, $crt);
  $smime->setPrivateKey($key, $crt, $password);



XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXX

XXXXXXXXXXXXX PEM XXXXXXXXXXXXXXXXXdieXXX

setPublicKey()


  $smime->setPublicKey($crt);
  $smime->setPublicKey([$crt1, $crt2, ...]);



XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX

XXXXXXXXXXXXX PEM XXXXXXXXXXXXXXXXXdieXXX

setPublicKeyStore()


  $smime->setPublicKeyStore($path, ...);



XXXXXXXXX (XXX) XXXXXXXXXXXXXXXXXX (XXX) XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

XXXXXXXXXXXXXXXXXXXdieXXX

sign()


  $signed_mime = $smime->sign($raw_mime);



XXXXXXMIMEXXXXXXXXXXXXXXXXXXXXXXX

Content-*, MIME-* XX Subject XXXXXXXX multipartXXXXXXXXXXXXX Subject XS/MIMEXXXXXXXXXXXXXX, multipartX XXXXXXXXXXXXXXXXXXXXXXXXXXX

XX MIME XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (tainted) XXXXXXXXXXXXXXXXXXXXX

signonly()


  $sign = $smime->signonly($prepared_mime);



XXXXXXXXX $sign XBASE64XXXXXXXXXXXX $prepared_mime XX, prepareSmimeMessage XXXXXXXXXX

XX MIME XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (tainted) XXXXXXXXXXXXXXXXXX

prepareSmimeMessage()


  ($prepared_mime, $outer_header)
      = $smime->prepareSmimeMessage($source_mime);



XXXXXXXXXXXXXXX $prepared_mime XXXXXXXXXXXMIMEXXXXXXXXX $outer_header XXS/MIMEXXXXXXXXXXXXXXX

$prepared_mime XXXX$source_mimeXXXXXXXXX XXXXXXXXContent-*, MIME-*, Subject XXXXXX XXXXXXXXXXXXXXXXX $outer_header XXXXXX S/MIMEXXXXXXXXXXXXXXXXS/MIMEXXXXXXXXXXXXXXX Subject XXXXXX $prepared_mime X $outer_header XXXX XXXXXXXX

check()


  use Crypt::SMIME qw(:constants);

  $source_mime = $smime->check($signed_mime);
  $source_mime = $smime->check($signed_mime, $flags);



XXXXXXXXXXXXXXXXXXXXXXXdieXXX

$flags XXX Crypt::SMIME::NO_CHECK_CERTIFICATE XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX $flags XXXXXXXX 0 XXXXXXXXXXXXXXXXXXXXXXXXXXX

XX S/MIME XXXXX, $flags, XXXXXXXXXXXXXXXXXXXXXX (tainted) XXXXXXXXXXXXXXXXXXXXX

encrypt()


  $encrypted_mime = $smime->encrypt($raw_mime);



XXXXXXX

Content-*, MIME-* XX Subject XXXXXXXX multipartXXXXXXXXXXXXXXX Subject XS/MIMEXXXXXXXXXXXXXX, multipartX XXXXXXXXXXXXXXXXXXXXXXXXXXX

XX MIME XXXXXXXXXXXXXXXXXXXXXXXXXXXX (tainted) XXXXXXXXXXXXXXXXXXXXXX

decrypt()


  $decrypted_mime = $smime->decrypt($encrypted_mime);



XXXXXXXXXXXXXXXXXXXXXXXdieXXX

XX S/MIME XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (tainted) XXXXXXXXXXXXXXXXXXXXX

isSigned()


  $is_signed = $smime->isSigned($mime);



XXXXMIMEXXXXXXS/MIMEXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXX

isEncrypted()


  $is_encrypted = $smime->isEncrypted($mime);



XXXXMIMEXXXXXXS/MIMEXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXX

XX

extractCertificates()


  use Crypt::SMIME qw(:constants);

  @certs = @{Crypt::SMIME::extractCertificates($data)};
  @certs = @{Crypt::SMIME::extractCertificates($data, FORMAT_SMIME)};



<S/MIMEXXXXXXXXPKCS#7XXXXXXXXXXXX.509XXX (XXXXXXXXX) XXXXXXXXX XXXXXX $type XXXXXXXXXXXXXXXXXXX Crypt::SMIME::FORMAT_SMIME (XXX) XS/MIMEXXXXXX Crypt::SMIME::FORMAT_ASN1XXXXXXXX Crypt::SMIME::FORMAT_PEMXPEMXXX

getSigners()


  @certs = @{Crypt::SMIME::getSigners($data)};
  @certs = @{Crypt::SMIME::getSigners($data, $type)};



S/MIMEXXXXXXXXPKCS#7XXXXXXXXXXXXXXXX X.509XXXXXXXXXXXXXXX$typeXXXXXXXXXXXXXXXXXXX

XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXcheck()XXXXXXXX

XX

Copyright 2006-2014 YMIRLINK Inc. All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself

Bug reports and comments to: tl@tripletail.jp

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SMIME::JA (3) 2015-10-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.