lookup.sh (for use with ExecNamingService)

This commit is contained in:
str4d
2013-04-19 10:54:11 +00:00
parent df6da9e628
commit dd792d0099
2 changed files with 10 additions and 0 deletions

View File

@ -20,3 +20,6 @@ of the compile target.
5) ant buildCore
6) java -cp build/i2p.jar:path/to/bcprov.jar:path/to/bcpg.jar net.i2p.util.OpenPGPDest -?
OpenPGPDest can be used with ExecNamingService via the included lookup.sh; edit
the variables within to point to the correct key server and the .jar libraries.

7
openpgp/lookup.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
KEYSERVER=127.0.0.1:11371
I2PJAR=$I2P/lib/i2p.jar
BCLIBS=path/to/bclibs
BCPROVJAR=$BCLIBS/bcprov.jar
BCPGJAR=$BCLIBS/bcpg.jar
curl "http://$KEYSERVER/pks/lookup?op=get&search=$1&options=mr" 2>/dev/null | java -cp $I2PJAR:$BCPROVJAR:$BCPGJAR net.i2p.util.OpenPGPDest --b64