[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Hvordan man kommer fra tdc's html fil og får importeret sig. i firefox



Hej,

Jeg havde de samme problemer som alle andre med at får min signatur installeret, og efter kontakt med en tdc medarbejder lykkedes det endeligt.

Jeg har skrevet et lille script som kan konvertere tdc's html side til en pkcs12 signatur fil. Det har flere afhængigheder end der perl script som er at finde her på listen - til gengæld tager det lidt bedre hånd om sikkerheden. (tdc's htmlfil er læselig for alle)

Efter at man har brugt scriptet kan man importere pkcs12 filen i FireFox og ThunderBird (selv om tdc's applet kom til at virker er det for mig at se den eneste måde at få signaturen over i ThunderBird).

Mine 25 øre,
Kim

#!/bin/sh
# Copyright Kim Bisgaard

findes()
{
    if [ -z `which $1 2>/dev/null` ]; then
	echo Dette program har brug for programmet $1 for at kunne virke,
	echo dette kan evt. findes i en pakker som hedder $2
	exit 1
    fi
}

if (( $# != 2 )); then
    echo "Udtraekker din signatur fra html filen" 
    echo "Brug: $0 <sig> <pkcs12>"
    echo "      <sig>: f.eks. \"Digital Signatur for xxxx.html\""
    echo "      <pkcs12>: ny fil til den generede pkcs12 signatur"
else
    findes awk "enten awk eller gawk"
    findes openssl "openssl"
    findes dirname "coreutils"
    findes chmod "coreutils"
    findes touch "coreutils"
    findes fold "coreutils"
   if [ `openssl no-enc` != enc ]; then
	echo Dette program har brug for openssl \"enc\" programmet for at kunne virke,
	echo dette kan evt. findes i en pakke som hedder openssl
	exit 1
    fi
    for d in `dirname "$1"` `dirname "$2"`; do
	# saet katalogerne så at det kun er dig der kan læse dem
	echo Nu er det kun dig der kan laese kataloget $d
	chmod go-rwx $d
    done
    touch $2
    chmod go-rwx "$1" "$2"
    awk -F \" '/^pkcs12=/ {print $2}' "$1" |fold -b -w 64 |openssl enc -d -a >"$2"
    echo "Din pkcs12 signatur ligger nu i \"$2\" - pas godt paa den!"
fi


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *