Is it possible to encrypt file with .asc extension directly from Nautilus?

I tried with Seahorse add on but its always encrypting with gpg extension.


You can use Nautilus-Actions Configuration Tool and create an action to do this.
Find the application in Software Centre

From Gnome Terminal type:

sudo apt-get install nautilus-actions
nautilus -q

Main Window

Then add you action like this:

Action Window

path = /usr/bin/pgp
parameter = --recipient "" --armor --encrypt %f

Now when you right click on file, you'll see this
Context Menu

Actual Result (even if not GUI, because I don't have nautilus-actions-config-tool installed) :

gpg asc

  • Could you please expand, answers containing link-only solution aren't welcome on AskUbuntu in case of the website it's poiting to gets offline. In this case, you could add steps from the "nice guide" in your answer and provide the name of the package "nautilus-actions configuration tool". – MrVaykadji May 26 '14 at 13:36
  • 1
    Hi @MrVaykadji, I'll try to correct the answer – Diego Vicentini May 26 '14 at 13:41
  • @DiegoVicentini : Does it give me the option to set a desired extension (.asc) to my file? – Ubuntuser May 26 '14 at 15:55
  • Yes, it does ;) see the image I added. – MrVaykadji May 26 '14 at 17:34

You can create a file .asc with GPG on older versions. Now, you'll have to rename the extension. So, create file.pgp, and mv file.pgp file.asc to rename it.

That should be it.

In here, it's also said that you can do that :

1) First make sure you don’t have a key already:

gpg --list-keys

2) If you didn’t and need to create a key then run:

gpg --gen-key

It might hang for awhile while generating enough random entropy. Run ls -R / to speed things up.

3) And upload it to a public key server:

gpg --keyserver hkp://pgp.mit.edu --send-keys <keyid>

4) Now list the keys again to get the keyid:

gpg --list-keys

The keyid is the half after the / in:

pub XXXX/XXXXXXXX 2011-12-05

5) Then generate your key:

gpg -ab <filename>
  • Thanks for your answer. I am looking for a way to encrypt a file . Final output should be a .asc file . I should be able to do this from Nautilus not commandline – Ubuntuser May 25 '14 at 11:07
  • And you already use seahorse-nautilus but you don't want .gpg ? – MrVaykadji May 25 '14 at 11:29
  • Yes, absolutely correct. – Ubuntuser May 26 '14 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.