Jump to content

Get RSA Key


Recommended Posts

This is very simple alfred workflow that will launch RSA SecurID, copy the current key to the clipboard, and then close the application.

 

I've uploaded a ready to import workflow as well as all the various components.

 

This is my first attempt at an alfred workflow so any feedback is welcome.

 

** Updated **

Added ability to optionally pass a pin code if required.

Edited by williusj
Link to comment
  • 2 years later...

Thanks for making this available. One alternative to manually entering the PIN is saving it in the OS X KeyChain (in my case I save it as "RSA SecurID PIN" and then retrieving it with:

 

security -q find-generic-password -gl 'RSA SecurID PIN' 2>&1 | egrep '^password' | awk -F\\\" '{print $2}')

 

And then using this instead of {query} in the bash script, i.e.:

 

osascript Get-RSA-Key.scpt $(security -q find-generic-password -gl 'RSA SecurID PIN' 2>&1 | egrep '^password' | awk -F\\\" '{print $2}');
echo Copied key to clipboard: `pbpaste`

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...