zxid

 view release on metacpan or  search on metacpan

test2-smime.pl  view on Meta::CPAN

print Dumper($res);

$mime = "Content-type: text/plain\r\n\r\nfoo";

$id = <<KEY_AND_CERT;
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,1D7ADC69F74A221B

oaEYtg5HRsEJ6nuA6Y97u66udgxzgB9qcPMkOantl0yH3kQoih9DKJhu5tUmeSXE
PN4P7O/1K0JMuwEzRm6HKiyPQZaXzdG+Mgpg6WhkaeVOFREmBSjweHGf4vMd8NLn
e8exKvhHeJTOM6gM78KJZ8KYqNOe3IHH49Eoq4WTfPQHi9FCT4aujjSy32ctkeHZ
LJnnHXaW5gjTfRmOML2HpJ6y6uzmT2FomQA9mrtR+Q1WLq4ms54ESaC5x5286qBh
XnqMZFclTEcnyv3O95X0ZxG5IXwZtBWZy018TxryxqAhAhcl87k6fPRwaRsJi6zD
/Vzr7VI7Wu9rNtxvQNBqvWqGH8KF80qPmUiNnUSE+kk+jiR5PylDLM90DfLRHElI
E8nGvqUk3bgLujeYR/89Mx9s4orSMbWmPUROFKTA+8p9Ni2wDutIyotYGI6e+amu
D38N/+NaKPn2OZfDvZUnDJ5bakYAuSX8M8QtP8B99m1ul2zLUL23a5hcKxS9DiyJ
vI80V3ingIGLIR+kk/waEVpRaPuPn/wtqOKVlt0g8977LyNFOisEWxLwEafQA9w3
9wVt5JzRowZWI33dq3lza368seJVMPtmZ5u+fFrWKEy+wLnfThdgdrs97ruJOTxM
w6kkEjsKzXyWKJqXEPy/vEWDJRBQHmX0s8ENC6N7+yeS0Z3dppD/uuqO8NCX0nUk
dNAldivL2vBBf/jDscyePyP1/FmkbRj+Uw22H1ApO2GXTEgez1E6h8kQ9wXZtVvn

zxlogclean.sh  view on Meta::CPAN

#!/bin/sh
# 20130331 sampo@synergetics.be

FIND=find
RM="rm -rf"
PGP=gpg
#zalgo=--compress-algo bzip2     # seems bzip2 does not help much for audit data
ses_atime=1
trail_atime=30
backupdir=~/zxbackup
now=`date -u '+%Y%m%d-%H%M%S'`

warning="WARNING: Running this script (zxlogclean.sh) in production environment
         may destroy valuable audit trail data, which you may be legally obliged
         to retain. Be sure any such data has already been copied to a safe place."

zxlogclean.sh  view on Meta::CPAN

       from the public keyring.
  -sig PRIVKEY  - When backing up, sign the backups using $PGP and private key
       from the secret keyring.
  -sym SYMKEYFILE  - When backing up, encrypt the backups using $PGP and symmetric
       key from the specified file. Warn: The key is protected by file permissions.
  -symfd SYMKEYFD  - When backing up, encrypt the backups using $PGP and symmetric
       key from the specified file descriptor.
  -symstr SYMSTR   - When backing up, encrypt the backups using specified symmetric key.
       WARNING: The supplied key will be visible from the command line history and ps.
                For the best security, you should use the -pgp PUBKEY option. 
  -pubring FILE - Specifies public keyring file for -pgp. Default ~/.gnupg/pubring.gpg 
  -secring FILE - Specifies secret keyring file for -sig. Default ~/.gnupg/secring.gpg 
  -bdir D  Backups are to be made to directory D (default $backupdir)
  -trail N Trail backup -atime value (in days) (default $trail_atime)
  -ses N   Session deletion -atime value (in days) (default $ses_atime)
  -nw  Shut down the warning about audit trail destruction
  -nd  No delete. Even when running for real and making backups, etc., do not delete
  -h   This help
  --   End of options

For -pgp and -sig options to work, you must have created keyrings, see $PGP --gen-key

To decrypt (and verify signature, if any):
gpg --secret-keyring log-decrypt-secret.gpg <~/zxbackup/trail-20130405-194808.tar.pgp | tar xvf -

BUGS: The -pgp options may be still buggy (20130404 --Sampo)
"

warn() { echo "$1" 1>&2; }
die()  { echo "$1" 1>&2; exit 1; }

while [ 1 ]; do
#warn "HERE($1)"
case "$1" in

zxlogview.c  view on Meta::CPAN

 *    - other errors
 *    - activity by IdP
 *    - activity by user (name ID)
 *    - activity in timeline
 *    - activity by operation
 * 3. Using /var/zxid/cot dereference the sha1 names to entity IDs
 * 4. Using /var/zxid/log/rely (and issue) chase the referenced
 *    assertions and validate them (sig, conditions, etc.) and
 *    extract statistics from them.
 * 5. Simple decryptor and signature verificator for encrypted
 *    files (e.g. rely assertions) (gpg or other standard compatible?)
 * 6. Regression test mode
 */

#include "platform.h"
#include "errmac.h"

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>



( run in 1.004 second using v1.01-cache-2.11-cpan-df04353d9ac )