Jump to content
Sign in to follow this  
williusj

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

Share this post


Link to post

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`

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...