Coder Social home page Coder Social logo

2sshfp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

2sshfp's Issues

Roundcube yubico security key plugin

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

Mitz
login
settings page_no key_effect

echo -> printf lost newline

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

Still does not supports sha2.

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

`openssl dgst` doesn't support -r

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.