gnupg

gpg: WARNING: unsafe ownership on configuration file, $gpg --fingerprint on Ubuntu9.10

戏子无情 提交于 2019-11-28 19:11:11
I'm getting this error when I run this code. gpg --fingerprint gpg: WARNING: unsafe ownership on configuration file `/home/dylan/.gnupg/gpg.conf The problem seems to be with permissions, but I have tried this code, and it has not seemed to change a thing. Checking through nautilus, I own the file and have read/write priv., and all others set to 'none'. sudo chmod 600 ~/.gnupg/gpg.conf dylan@Majuscule:~$ sudo chown -R dylan ~dylan/.gnupg [sudo] password for dylan: dylan@Majuscule:~$ chmod 600 ~/.gnupg/gpg.conf dylan@Majuscule:~$ chmod 700 ~/.gnupg dylan@Majuscule:~$ gpg --fingerprint dylan

Sign git commits with GPG

扶醉桌前 提交于 2019-11-28 18:37:16
Is there a way to sign git commits with gpg? It's so easy with tags (using -s instead of -a ), it seems there would be a similar function for commits. git commit -S (requires git >= 1.7.9). VonC Note: Adding the -S option all the time can be cumbersome. In git 2.0 and later, you can add a config which will take care of that option for you. See commit 2af2ef3 by Nicolas Vigier (boklm) : Add the commit.gpgsign option to sign all commits If you want to GPG sign all your commits, you have to add the -S option all the time. The commit.gpgsign config option allows to sign all commits automatically.

How do you use the PHP OpenPGP library?

爱⌒轻易说出口 提交于 2019-11-28 17:37:19
There is a PHP extension port of the gnupg PGP library. However, I'm having a hard time finding examples that explain how to use the library. How do you properly create keys for application users, and then use them to encrypt/decrypt text using the GnuPG library? See this URL it is very help full to you. Download example and try it. https://github.com/singpolyma/openpgp-php Or Try it:- You can download lib/openpgp.php and lib/openpgp_crypt_rsa.php files in above the URL. examples/keygen.php <?php require dirname(__FILE__).'/../lib/openpgp.php'; require dirname(__FILE__).'/../lib/openpgp_crypt

gpg encrypt file without keyboard interaction [closed]

Deadly 提交于 2019-11-28 17:08:35
I am running next command within a crontab to encrypt a file and I don't want a keyboard interaction echo "PASSPHRASE" | gpg --passphrase-fd 0 -r USER --encrypt FILENAME.TXT but I have this answer: gpg: C042XXXX: There is no assurance this key belongs to the named user pub 40XXX/C042XXXX 2012-01-11 Name LastName. (comment) <user@email.com> Primary key fingerprint: XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX Subkey fingerprint: XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX It is NOT certain that the key belongs to the person named in the user ID. If you *really* know what you are

Generating a GPG key for git tagging

僤鯓⒐⒋嵵緔 提交于 2019-11-28 16:42:21
问题 I'm trying to create signed tags in GitHub using the git command line. I generated a GPG key with a (sample) username Full Name (skytreader) <fullname@gmail.com> . Having done that, I try to create a signed tag. However I get the following error: gpg: skipped "full <fullname@gmail.com>": secret key not available gpg: signing failed: secret key not available error: gpg failed to sign the data error: unable to sign the tag I figure that I just need to create another key with the indicated

Batch file script to remove special characters from filenames (Windows)

我与影子孤独终老i 提交于 2019-11-28 09:17:02
I have a large set of files, some of which contain special characters in the filename (e.g. ä,ö,%, and others). I'd like a script file to iterate over these files and rename them removing the special characters. I don't really mind what it does, but it could replace them with underscores for example e.g. Störung%20.doc would be renamed to St_rung_20.doc In order of preference: A Windiws batch file A Windows script file to run with cscript (vbs) A third party piece of software that can be run from the command-line (i.e. no user interaction required) Another language script file, for which I'd

GPG automatic decryption password passing

若如初见. 提交于 2019-11-28 02:02:10
问题 We receive GPG encrypted files from a third party. I'm modifying a C# program that finds the encrypted files, decrypts them, and deletes the encrypted ones. It all works except during the decryption part it prompts for a phassphrase; I know the passphrase and it works when entered. I need to pass the passphrase in the command so the prompt never appears. string CommandText = string.Format("echo {0}|gpg.exe --keyring {1} --secret-keyring {2} --batch --yes --passphrase-fd 0 -o {3} -d {4}",

GPG Error Code 2

陌路散爱 提交于 2019-11-28 01:57:00
GPG is always returning 2 at the result. My code is as follows $cmd = "/usr/bin/gpg -a --recipient $to -e -o $outfile $infile"; Where outfile is the file where the encrypted data will be written and infile is the unencrypted data. I don't know why this is happening. Can anyone please tell me what's wrong. Thanks. GPG is asking whether you want to continue on with the encryption using an unsigned key. Since no user can input Y it produces an error. To fix this put the following switches --yes and --always-trust Thiago Silveira See this message: http://lists.gnupg.org/pipermail/gnupg-users/2008

GnuPG Wrapper with C#

孤街醉人 提交于 2019-11-27 19:04:50
问题 I use GnuPG and C# to encrypt files with imported public keys. But when I try to make encryption, GnuPG encrypt file with public key of main user. I'm sure that I pass right recipient. 回答1: You can try using my open source and free GnuPG wrapper for C# (and VB.NET). All the code is licensed via MIT, non-GPL restrictions. You can find the release with source code at CodePlex. Look for the Alpha release to find the GPG library. http://biko.codeplex.com/ Example: GnuPG gpg = new GnuPG(); gpg

gpg: WARNING: unsafe ownership on configuration file, $gpg --fingerprint on Ubuntu9.10

时光怂恿深爱的人放手 提交于 2019-11-27 12:01:35
问题 I'm getting this error when I run this code. gpg --fingerprint gpg: WARNING: unsafe ownership on configuration file `/home/dylan/.gnupg/gpg.conf The problem seems to be with permissions, but I have tried this code, and it has not seemed to change a thing. Checking through nautilus, I own the file and have read/write priv., and all others set to 'none'. sudo chmod 600 ~/.gnupg/gpg.conf dylan@Majuscule:~$ sudo chown -R dylan ~dylan/.gnupg [sudo] password for dylan: dylan@Majuscule:~$ chmod 600