northox / 2sshfp Goto Github PK
View Code? Open in Web Editor NEWBuild SSHFP DNS records - xmss, ecdsa & ed25519 support
Build SSHFP DNS records - xmss, ecdsa & ed25519 support
Should be able to pass an option to use sha2 instead of sha1.
> ./ssh-keyscan2sshfp -sha1 bombshock.mantor.org shockwave.mantor.org
bombshock.mantor.org. IN SSHFP 2 1 D99CC6D7108DFE3E97E8AA9ED33FC9B3799E4ADB
> ./ssh-keyscan2sshfp -sha2 bombshock.mantor.org shockwave.mantor.org
bombshock.mantor.org. IN SSHFP 2 2 D99CC6D7108DFE3E97E8AA9ED33FC9B3799E4ADB
Hi Danny,
Firstly, sorry to put yubico issue in wrong repository. i am newbie to github and was not able to put issue in archived repository. i have installed roundcube yubikey plugin in my roundcube 1.3.1. It is showing require otp option. I have procured 'Security Key u2f' from yubico. But it is not showing any effect on plugin to usb and placing curson in yubikey id. I have checked with demo page on yubico, where my keys(two of them) are working fine as they have got registered and authenticated. Kindly guide in getting two factor authentication activated in my setup.
Thank again
The recent commit to change echo to printf, 6f58718, appears to have had the unintended consequence of losing newlines. echo adding them by default, printf not so.
Simply adding a newline fixes this.
--- bin/2sshfp.orig 2017-05-12 17:55:17.504030010 +0800
+++ bin/2sshfp 2017-05-12 17:55:49.780881219 +0800
@@ -1,7 +1,7 @@
#!/bin/sh
# A secure way to create SSHFP records (local) | Danny Fullerton - mantor.org | license: public domain
if [ $# -ne 1 ] || [ "$1" = "-h" ]; then
- printf "Usage:\t$0 <hostname>\n\t$0 galvatron.mantor.org." >&2
+ printf "Usage:\t$0 <hostname>\n\t$0 galvatron.mantor.org.\n" >&2
exit 1
fi
name=$1
@@ -13,7 +13,7 @@
if [ -f $key_path ]; then
eval "h=\${hash${j}}"
sshfp=`awk '{print $2}' $key_path | openssl base64 -d -A | openssl dgst -${h} | sed 's/^.* //' | awk '{print $1}' | tr '[a-z]' '[A-Z]'`
- printf "${name} IN SSHFP ${i} ${j} ${sshfp}"
+ printf "${name} IN SSHFP ${i} ${j} ${sshfp}\n"
fi
done
done
The openssl versions on my Linux and MacOSX machines don't provide a -r flag, and instead just read from stdin by default if there isn't a file given in the command.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.