Inhaltsverzeichnis

nocat-Auth

Voraussetzungen

perl-CGI (ist bereits in perl-5.8.5 enthalten) perl-Digest-MD5 (ist bereits in perl-5.8.5 enthalten)

spec

%define __check_files /usr/lib/rpm/check-files %{buildroot}
%define _unpackaged_files_terminate_build 0
%define _missing_doc_files_terminate_build 0

/usr/lib/rpm/brp-compress
find $RPM_BUILD_ROOT/usr -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" | grep -vE "(perllocal\.pod|\.packlist|\.bs$)" > %{name}-%{version}-filelist

%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%doc README
<file>

===== manuell =====
<code>
tar xzf NoCatAuth-0.82.tar.gz 
cd NoCatAuth-0.82
NOCATROOT=/usr/local/nocat
mkdir -p $NOCATROOT
make PREFIX=$NOCATROOT/gateway gateway
make PREFIX=$NOCATROOT authserv
make PREFIX=$NOCATROOT pgpkey
<code>
<file>
Looking for gpg...
[ -d /usr/local/nocat/pgp ] || mkdir /usr/local/nocat/pgp
chmod 700 /usr/local/nocat/pgp
gpg --homedir=/usr/local/nocat/pgp --gen-key
gpg (GnuPG) 1.2.6; Copyright (C) 2004 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

gpg: keyring `/usr/local/nocat/pgp/secring.gpg' created
gpg: keyring `/usr/local/nocat/pgp/pubring.gpg' created
Please select what kind of key you want:
   (1) DSA and ElGamal (default)
   (2) DSA (sign only)
   (4) RSA (sign only)
Your selection? 1
                                                                                                                                              Invalid selection.
Your selection? 1
DSA keypair will have 1024 bits.
About to generate a new ELG-E keypair.
              minimum keysize is  768 bits
              default keysize is 1024 bits
    highest suggested keysize is 2048 bits
What keysize do you want? (1024) 
Requested keysize is 1024 bits   
Please specify how long the key should be valid.
         0 = key does not expire
      <n>  = key expires in n days
      <n>w = key expires in n weeks
      <n>m = key expires in n months
      <n>y = key expires in n years
Key is valid for? (0) 
Key does not expire at all
Is this correct (y/n)? y
                        
You need a User-ID to identify your key; the software constructs the user id
from Real Name, Comment and Email Address in this form:
    "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"

Real name: No Cat                           
Email address: nocat@localhost
Comment: AuthGW               
You selected this USER-ID:
    "No Cat (AuthGW) <nocat@localhost>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.    

We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
+++++.+++++++++++++++++++++++++++++++++++.+++++++++++++++..+++++++++++++++++++++++++.++++++++++.+++++++++++++++++++++++++.+++++.+++++.+++++>++++++++++.......>..+++++................................+++++
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
+++++.+++++.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++..++++++++++.+++++...+++++.++++++++++...+++++.++++++++++.++++++++++.+++++>+++++......>+++++............................................+++++^^^
gpg: /usr/local/nocat/pgp/trustdb.gpg: trustdb created
public and secret key created and signed.
key marked as ultimately trusted.

pub  1024D/5AC6BC99 2005-05-08 No Cat (AuthGW) <nocat@localhost>
     Key fingerprint = 11BC D852 246B 45FA 1984  ED6A 9A0F 51BD 5AC6 BC99
sub  1024g/058027BA 2005-05-08

cp -R /usr/local/nocat/pgp/pubring.gpg /usr/local/nocat/trustedkeys.gpg

Be sure to make your /usr/local/nocat/pgp directory readable *only* by the user
    your httpd runs as.

The public key ring you'll need to distribute can be found in
           /usr/local/nocat/trustedkeys.gpg.

cp $NOCATROOT/trustedkeys.gpg $NOCATROOT/gateway/pgp
chown apache.apache $NOCATROOT/gateway/pgp
cp etc/authserv.conf $NOCATROOT/etc
cd ..
cp authserv-nocat.conf $NOCATROOT/nocat.conf
cp gw-nocat.conf $NOCATROOT/gateway/nocat.conf
grep -E "^Local(Gateway|Network)" $NOCATROOT/nocat.conf
grep -E "Local(Gateway|Network)" $NOCATROOT/nocat.conf
grep -E "(AuthServiceAddr|LocalNetwork|DNSAddr|Owners)" $NOCATROOT/gateway/nocat.conf
cp nocat-apache-ssl.conf /etc/httpd/conf.d/nocat.conf
 
wissen/gpl/nocat/howto.txt · Zuletzt geändert: 05.09.2010 20:31
 
Recent changes RSS feed Donate Valid XHTML 1.0 Valid CSS Recent cached RSS feed cacert-signed web site: inhalt.serviert.de