Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 104857 Details for
Bug 153922
ebuild for mail-filter/dkim-milter
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
helps the user create keys. taken from dk-milter ebuild. place under files dir as wel
gentxt.sh (text/plain), 1.45 KB, created by
Eray Aslan
on 2006-12-28 08:14:49 UTC
(
hide
)
Description:
helps the user create keys. taken from dk-milter ebuild. place under files dir as wel
Filename:
MIME Type:
Creator:
Eray Aslan
Created:
2006-12-28 08:14:49 UTC
Size:
1.45 KB
patch
obsolete
>#!/bin/bash >## >## $Id: gentxt.sh,v 1.1 2006/07/15 23:47:38 langthang Exp $ >## >## Copyright (c) 2004, 2005 Sendmail, Inc. and its suppliers. >## All rights reserved. >## >## gentxt.csh -- generate a TXT record for DomainKeys service >## >## Usage: gentext.csh <selector> [<domain>] >## >## This will write a TXT record suitable for insertion into a DNS zone file >## on standard output, and the matching public/private keys will be in >## PEM-formatted files called <selector>.public and <selector>.private, >## respectively, in the current directory. >## >## To translate the record produced by this script, see the DomainKeys >## draft. The script will output a record which advertises an RSA-style >## public key in test mode. > >## langthang@gentoo.org (15 July 2006) >## bash is gentoo default shell >## convert to bash > ># verify usage >if [[ "$3" != "" || "$1" == "" ]] ; then > echo "usage: $0 selector [domain]" > exit 1 >fi > ># copy the argument >selector="$1" >domain="$2" > ># generate a private key >openssl genrsa -out ${selector}.private 512 >& /dev/null > ># generate a public key based on the private key >openssl rsa -in ${selector}.private -out ${selector}.public -pubout \ > -outform PEM >& /dev/null > ># prepare the data >keydata=`grep -v '^-' ${selector}.public` >pubkey=`echo $keydata | sed 's/ //'` > ># output the record >echo -n ${selector}._domainkey IN TXT '"'g=\; k=rsa\; t=y\; p=$pubkey'"' >if [[ "$domain" != "" ]] ; then > echo " ; ----- DomainKey $selector for $domain" >else > echo "" >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 153922
:
104854
|
104855
|
104856
|
104857
|
104859
|
104860
|
104861
|
119194
|
119196
|
119198
|
119202
|
121684
|
121685
|
121726
|
121727
|
121728
|
124532
|
124534
|
126618
|
126619
|
132961
|
132962