Silk Road forums

Discussion => Security => Topic started by: professoryoke on January 10, 2013, 11:43 pm

Title: Problems installing GPG on a mac.
Post by: professoryoke on January 10, 2013, 11:43 pm
Trying to install GPGTools (As per the suggestion of the bitcoin-otc wiki) so that I can trade on bitcoins-otc, however I can't seem to be able to install it on my mac. I can download it, and when I open it I can use the installer, but after I go through all the steps to install it nothing happens. I don't have any program I can use, just the same zip file and disk image I started with.

Can anyone point me in the right direction? Or suggest another mac friendly GPG?
Title: Re: Problems installing GPG on a mac.
Post by: wasta on January 10, 2013, 11:48 pm
Google gpg for usb, I guess. Windows users should use it too. There are benefits for the usb-gpg above the gpg-win version.
Title: Re: Problems installing GPG on a mac.
Post by: Nightcrawler on January 11, 2013, 01:34 am
Trying to install GPGTools (As per the suggestion of the bitcoin-otc wiki) so that I can trade on bitcoins-otc, however I can't seem to be able to install it on my mac. I can download it, and when I open it I can use the installer, but after I go through all the steps to install it nothing happens. I don't have any program I can use, just the same zip file and disk image I started with.

Can anyone point me in the right direction? Or suggest another mac friendly GPG?

GPG4USB is not usable on a Mac; the only platforms supported (at least for now) are Windows and Linux.  When you are referring to a .zip file, I'm assuming that you're referring to GPG4USB, as it is provided in a .zip file.  As I said, it won't work on a Mac, so don't waste your time trying. (The authors are working on a Mac version, but who knows when it will be available.)

Your only option is GPGTools at present, provided that you are running a supported version of OS X.  GPGTools will not run on Leopard (`10.5) -- you must be running Snow Leopard (10.6), Lion (10.7) or Mountain Lion (10.8) for GPGTools to properly function.

Furthermore, you may need to be running one of the nightly builds.

Here is Guru's tutorial:

GPGTools is highly version dependent -- depending on which version of OS X
you have, it may or may not work as expected.  If you have Leopard (10.5)
then you're pretty much out of luck. Your only option then will be using
the command-line.

If you have Snow Leopard (10.6), Lion (10.7) or Mountain Lion (10.8), the
following instructions should be sufficient to allow you to get up and
running.

Download and install GPGTools: http://nightly.gpgtools.org/GPGTools_Installer-trunk.dmg

Once you have installed GPGTools,  what you want to do is to go into
System Preferences --> Keyboard --> Services.

Scroll down until you find the following entries. Be sure to put a check
mark in the boxes to activate each keyboard shortcut.

Keyboard shortcuts:

OpenPGP: Decrypt Selection:             Shift-Command-D

OpenPGP: Encrypt Selection:             Shift-Command-E

OpenPGP: Import Key from Selection:     Shift-Command-I

OpenPGP: Insert My Fingerprint:         Shift-Command-F

OpenPGP: Insert My Key:                 Shift-Command-K

OpenPGP: Sign Selection:                Shift-Command-R

OpenPGP: Verify Signature of Selection: Shift-Control-V

Remember, these shortcuts only operate on highlighted or selected text.

N.B.: To properly be able to import PGP into GPGChain (via TextEdit) you
need to change the default on TextEdit from .rtf to plain text. You can do
that through the Format menu, or you can go through the main configuration
menu, accessible by using Command-comma. Ensure the plain text radio button
is selected.

Also ensure that the following are UNCHECKED in TextEdit preferences:
smart quotes, smart dashes, smart links.

To select text within TextEdit, use Command-A to highlight the entire
document, or use your mouse to selection the section that you want to
verify/sign/encrypt/decrypt. It is highly recommended that you use only
plain-text, as opposed to Rich Text (.rtf) format. Use Command-comma to
bring up Preferences and ensure that the plain text radio button is
checked.

Once your text is highlighted in TextEdit, (by pressing Comand-A) you then
encrypt using Shift-Command-E. You will then be presented with a list of
keys to encrypt to, that you have added to your PGP keyring:

Other Commands You May Need:
============================

OpenPGP: Decrypt File:                   Control-Command-D

OpenPGP: Encrypt File:                   Control-Command-E

OpenPGP: Sign File:                      Control-Command-S

OpenPGP: Verify Signature of File:       Control-Command-V


Once you have setup these shortcuts, you can begin using GPG.

To encrypt a message to someone using GPG, you first need a copy of the
recipient's PGP public key.

Once you have located someone's PGP public key, you should copy and paste
it into TextEdit. Save the PGP key to a file; you can call the file,
import.asc (or import.txt), for example. This saved file will usually be
found in the Documents folder.

Launch GPG Keychain Access from the Applications folder. click on the
Import icon in the upper left hand corner. GPG Keychain Access will then
prompt you for the name of the file which contains the key to import. It
will usually show you a list of files in the Documents folder. Click on the
file named import.asc (or import.txt), and click ok. The PGP public key
will then be imported into your PGP keyring.

To encrypt a message to a person, the message must be contained in a
TextEdit document. Use Command-A to hightlight the entire document. Then
use Shift-Command-E to encrypt. GPG will pop-up a list of public keys in
your PGP keyring. Each key will have a little checkbox beside it which you
can check, to select that particular key. If you were encrypting a message
to me, you would put a check in the box beside my PGP key (Guru@SR).

When you click on OK, the plaintext (unencrypted) message in TextEdit will
be replaced with the encrypted message. You can then copy and paste the
encrypted message to enter it into a form on Silk Road, or anywhere else
that it needs to go.

To decrypt a message sent to you by other people, you need to copy that
message to the clipboard, and paste it into a TextEdit document. Again use
Command-A to highlight all the encrypted message. Then use Shift-Command-D
to decrypt the message. If the message is encrypted to your PGP public key,
you will be prompted to enter your passphrase. Once the correct passphrase
has been entered, and you click OK, then the message will be decrypted,
and the decrypted text will be placed in the TextEdit document, replacing
the encrypted message that was there previously.

Guru

Title: Re: Problems installing GPG on a mac.
Post by: professoryoke on January 11, 2013, 01:53 pm
Trying to install GPGTools (As per the suggestion of the bitcoin-otc wiki) so that I can trade on bitcoins-otc, however I can't seem to be able to install it on my mac. I can download it, and when I open it I can use the installer, but after I go through all the steps to install it nothing happens. I don't have any program I can use, just the same zip file and disk image I started with.

Can anyone point me in the right direction? Or suggest another mac friendly GPG?

GPG4USB is not usable on a Mac; the only platforms supported (at least for now) are Windows and Linux.  When you are referring to a .zip file, I'm assuming that you're referring to GPG4USB, as it is provided in a .zip file.  As I said, it won't work on a Mac, so don't waste your time trying. (The authors are working on a Mac version, but who knows when it will be available.)

Your only option is GPGTools at present, provided that you are running a supported version of OS X.  GPGTools will not run on Leopard (`10.5) -- you must be running Snow Leopard (10.6), Lion (10.7) or Mountain Lion (10.8) for GPGTools to properly function.

Furthermore, you may need to be running one of the nightly builds.

Here is Guru's tutorial:

GPGTools is highly version dependent -- depending on which version of OS X
you have, it may or may not work as expected.  If you have Leopard (10.5)
then you're pretty much out of luck. Your only option then will be using
the command-line.

If you have Snow Leopard (10.6), Lion (10.7) or Mountain Lion (10.8), the
following instructions should be sufficient to allow you to get up and
running.

Download and install GPGTools: http://nightly.gpgtools.org/GPGTools_Installer-trunk.dmg

Once you have installed GPGTools,  what you want to do is to go into
System Preferences --> Keyboard --> Services.

Scroll down until you find the following entries. Be sure to put a check
mark in the boxes to activate each keyboard shortcut.

Keyboard shortcuts:

OpenPGP: Decrypt Selection:             Shift-Command-D

OpenPGP: Encrypt Selection:             Shift-Command-E

OpenPGP: Import Key from Selection:     Shift-Command-I

OpenPGP: Insert My Fingerprint:         Shift-Command-F

OpenPGP: Insert My Key:                 Shift-Command-K

OpenPGP: Sign Selection:                Shift-Command-R

OpenPGP: Verify Signature of Selection: Shift-Control-V

Remember, these shortcuts only operate on highlighted or selected text.

N.B.: To properly be able to import PGP into GPGChain (via TextEdit) you
need to change the default on TextEdit from .rtf to plain text. You can do
that through the Format menu, or you can go through the main configuration
menu, accessible by using Command-comma. Ensure the plain text radio button
is selected.

Also ensure that the following are UNCHECKED in TextEdit preferences:
smart quotes, smart dashes, smart links.

To select text within TextEdit, use Command-A to highlight the entire
document, or use your mouse to selection the section that you want to
verify/sign/encrypt/decrypt. It is highly recommended that you use only
plain-text, as opposed to Rich Text (.rtf) format. Use Command-comma to
bring up Preferences and ensure that the plain text radio button is
checked.

Once your text is highlighted in TextEdit, (by pressing Comand-A) you then
encrypt using Shift-Command-E. You will then be presented with a list of
keys to encrypt to, that you have added to your PGP keyring:

Other Commands You May Need:
============================

OpenPGP: Decrypt File:                   Control-Command-D

OpenPGP: Encrypt File:                   Control-Command-E

OpenPGP: Sign File:                      Control-Command-S

OpenPGP: Verify Signature of File:       Control-Command-V


Once you have setup these shortcuts, you can begin using GPG.

To encrypt a message to someone using GPG, you first need a copy of the
recipient's PGP public key.

Once you have located someone's PGP public key, you should copy and paste
it into TextEdit. Save the PGP key to a file; you can call the file,
import.asc (or import.txt), for example. This saved file will usually be
found in the Documents folder.

Launch GPG Keychain Access from the Applications folder. click on the
Import icon in the upper left hand corner. GPG Keychain Access will then
prompt you for the name of the file which contains the key to import. It
will usually show you a list of files in the Documents folder. Click on the
file named import.asc (or import.txt), and click ok. The PGP public key
will then be imported into your PGP keyring.

To encrypt a message to a person, the message must be contained in a
TextEdit document. Use Command-A to hightlight the entire document. Then
use Shift-Command-E to encrypt. GPG will pop-up a list of public keys in
your PGP keyring. Each key will have a little checkbox beside it which you
can check, to select that particular key. If you were encrypting a message
to me, you would put a check in the box beside my PGP key (Guru@SR).

When you click on OK, the plaintext (unencrypted) message in TextEdit will
be replaced with the encrypted message. You can then copy and paste the
encrypted message to enter it into a form on Silk Road, or anywhere else
that it needs to go.

To decrypt a message sent to you by other people, you need to copy that
message to the clipboard, and paste it into a TextEdit document. Again use
Command-A to highlight all the encrypted message. Then use Shift-Command-D
to decrypt the message. If the message is encrypted to your PGP public key,
you will be prompted to enter your passphrase. Once the correct passphrase
has been entered, and you click OK, then the message will be decrypted,
and the decrypted text will be placed in the TextEdit document, replacing
the encrypted message that was there previously.

Guru



Seems like I'm out of luck then, as I'm using Leopard (10.5.7). I was planning on updating my OS soon anyway, so I guess I'll have to wait for that. Thanks for your help.
Title: Re: Problems installing GPG on a mac.
Post by: Nightcrawler on January 11, 2013, 02:37 pm
Here is some information relating to using GPG from the command-line:

Cyphre Security Guides (master post)
http://dkn255hz262ypmii.onion/index.php?topic=38861.0

GPG HOWTO: Introduction to the GPG command line
http://dkn255hz262ypmii.onion/index.php?topic=35022.0

Nightcrawler <Nightcrawler@SR>
PGP-Key: 4096R/BBF7433B 2012-09-22
Key fingerprint = D870 C6AC CC6E 46B0 E0C7 3955 B8F1 D88E BBF7 433B
http://dkn255hz262ypmii.onion/index.php?topic=174.msg633090#msg633090