Questions tagged [public-key-encryption]

Public-key cryptography (encryption is a misnomer) is the process of creating two keys during the encryption of plain text, one private and one public.

Filter by
Sorted by
Tagged with
0
votes
0answers
70 views

Can I perform ECC encryption (like ECIES) with openssl?

I would like to use Elliptic Curve Cryptography to asymmetrically encrypt data. That is encrypt data using a public ECC key, so that only someone with the corresponding private key can decrypt it. I'm ...
0
votes
0answers
55 views

Is it possible to verify a GPG file signature on Linux & Windows without internet connection?

Can you please hint me to the steps I need to verify a file's signature (without connecting to the Internet) on command line using GnuPG, when I have the three required files ready: installer file (....
0
votes
1answer
215 views

How to un-encrypt a single encrypted field from a file in Linux (openssl, rsa key)

I have a csv file that I receive every day on Linux. The file itself is NOT encrypted as a whole, but one of the fields is, so it looks something like this: data, data, data, encrypted_data, data, ...
0
votes
0answers
24 views

Cannot find key of PGP bot

I'm trying to configure Thunderbird with Enigmail following the Email Self-Defence Guide, but I cannot find the public key of GnuPG bot. email: edward-en@fsf.org
0
votes
1answer
71 views

SSH authentication methods questions

These days i look at the SSH protocol and iam trying to figure out how the password and public key authentication methods really work. In password authentication, i know that the client encrypts the ...
0
votes
1answer
273 views

How to encrypt a message by using a .pub file?

I received a file named id_rsa1.pub from a company so I can send them an ecrypted message. But I can't import it to my program "Kleopatra", because the file format is not supported. Unfortunately ...
1
vote
1answer
53 views

Why does an EFS-encrypted file get decrypted when it gets uploaded to the Internet?

Why is an EFS-encrypted file decrypted when it gets uploaded to the Internet?
0
votes
1answer
72 views

Will the contents of an encrypted file from a local disk be visible to others when uploaded to the Internet?

If I encrypt the contents of a file through File Explorer in Windows 10 (Properties -> Attributes -> Advanced) and upload it to the internet (cloud, attachment in an email, etc.), will I still be the ...
0
votes
1answer
106 views

Is the role of public key/private key determined arbitrarily or mathematically?

I have read about conflicting information about the roles of public/private keys. In one article(Asymmetrical-key algorithms), it says: Simply put each party, say Alice, picks a private random ...
1
vote
1answer
42 views

What's the fundamental principle regarding who should hold which key (public vs. private)?

In a SSH logging scenario, the client keeps the private key while the server stores the public key under its ./ssh directory. In a different scenario, such as SSL, it's the server that keeps the ...
0
votes
0answers
186 views

I want to port forward my ssh connection to my docker container, where I run gitlab

I can ssh to my docker container by giving specific port number like this: ssh -p 8080 git@192.168.0.94 This works fine, and I am getting this: Welcome to GitLab, @malinda! Connection to 192.168.0....
1
vote
1answer
410 views

Extend the expiration date of a GPG key non-interactively

I need to extend the expiration date of a GPG key, but all the answers or articles I can find do it interactively, for example. I need to embed the logic in a shell script, so wondering how can I do ...
0
votes
1answer
52 views

Should 'username@hostname' in a public key be distributed together?

Usually, at the end of an RSA public key, you find something like 'username@hostname' by default or something else otherwise you specified. It is said that it is just a comment and doesn't matter at ...
0
votes
1answer
2k views

Unable to load Key pair from p12 certificate - OPENSSL error

I try to extract public and private keys from PKCS#12 certificate with openssl and always have the same error, even i just want to see it without output file (with flag -info) after the certificate ...
0
votes
0answers
21 views

How to create a portable gpgme directory for C/C++ projects

This question is probably quite basic knowledge but here it is. I want to integrate public key encryption, preferably using gpgme, in my projects but the computers running it will not always have ...
0
votes
1answer
209 views

Can OpenSSH on Windows Server 2019 employ client certificates created via PowerShell as opposed to ssh-keygen?

I'm really not sure of the core differences between each, but can OpenSSH on Windows Server 2019 employ client certificates created via PowerShell (*.pfx, .cer) as opposed to using public/private key ...
0
votes
0answers
43 views

Is there a maximum number of subkeys in GnuPG?

The GnuPG documentation describes a process to generate subkeys for a gpg-master-key with the option to have different validity settings for subkeys. This works perfectly for a small amount of subkeys,...
4
votes
3answers
8k views

How to check if a GPG encrypted file is encrypted using a specific public key?

Consider if a file is encrypted using command e.g. gpg --output test.txt.gpg --encrypt --recipient test@example.com test.txt Now, consider another person received test.txt.gpg the the pub key test@...
0
votes
1answer
232 views

limit sftp access to specific folders when using a public/private key with openssh

Is it possible to limit what folders a user can sftp to when using public/private keys? Say I have a server with user1 and their home folder is /home/user1. I already have it configured so user1 can ...
3
votes
1answer
2k views

When is asymmetric and symmetric encryption used in SSH?

I was reading the following document: https://www.digitalocean.com/community/tutorials/understanding-the-ssh-encryption-and-connection-process In the asymmetric encryption it looks like the shared ...
19
votes
3answers
11k views

I got “BEGIN PGP PUBLIC KEY BLOCK” attached to an email and I don't know what it is [duplicate]

Okay, I have no clue what this is, but I just received an email that has this in it. -----BEGIN PGP PUBLIC KEY BLOCK----- [redacted] -----END PGP PUBLIC KEY BLOCK----- If this means something, ...
1
vote
1answer
378 views

How to verify sks-keyservers HKPS certificate?

I’m trying to make sense of how PGP is supposed to be used securely, but coherent and helpful information on the subject is surprisingly hard to find. So, SKS keyservers provide their HKPS ...
2
votes
0answers
683 views

setting up key based authentication for windows 10 ssh server and client

I am trying to set up public private key authentication for the windows 10 beta openssh server and client. But i am running into the problem where it still asks for a password. here's what I did. -...
1
vote
0answers
287 views

Windows OpenSSH Public key issue

I have tried my best to get my ssh server configured although every time I try to log in with public key authorisation it comes up with a Server refused public key signature despite accepting key. I ...
0
votes
1answer
790 views

CertUtil | How CertUtil -verifykeys works internally?

I have a CA certificate in Local Machine Certificate Store. When I run this command - enter code here certutil -verifyKeys gives Key "KEYNAME" verifies as the public key for Certificate "KEYNAME" ...
1
vote
1answer
114 views

Do I need a PGP key?

I've recently got familiar with the concept of OpenPGP public-private keys, and how to use GnuPG tool to manage PGP keys. I have three questions: 1- Is it necessary for me to have a PGP (or an ...
-2
votes
1answer
2k views

How do I restore a deleted file encryption key on Windows 10?

I deleted my file encryption key from User Certificates in the Control Panel. I understand that Windows does not delete the private key and that User Certificates only deletes the key from the ...
0
votes
1answer
242 views

GnuPG outputting rubbish when trying to use the encrypt option

I've been using GnuPG fine for the past year or so, but I haven't encrypted anything directly from the CLI for a while. I've been trying to do it today and this is the weird output I get. Doesn't ...
2
votes
1answer
591 views

`gpg --edit-key <user>` not listing public key

I'm trying to understand better how GnuPG works. When I run: gpg --edit-key chloe I would expect to see something like this (from the GnuPG privacy handbook): Secret key is available. pub 1024D/...
5
votes
3answers
4k views

How to encrypt a file using my GPG private key so I can decrypt it later

I have a text file on my GNU/Linux laptop and I want to encrypt it with my GPG private key so I can decrypt it later and see the output. I've tried this: gpg --encrypt file.txt but I'm asked to ...
0
votes
1answer
122 views

Can't export or list keys

I'm using my desktop to obtain files from a server (using git and rsync), now I want to use my notebook and try therefore to export/import the required RSA-keys. Automatic login from the notebook to ...
0
votes
2answers
89 views

What's the simplest way to perform public key encryption?

I'm applying for a job and they asked me to send my SSN to them over e-mail. Call me paranoid, but that doesn't sit well with me. So, I'm looking for a simple form of public-key encryption that a ...
2
votes
1answer
1k views

Cannot export secret key without providing passphrase

I have forgotten my passphrase for my secret GPG key, and I want to export it, so that I can brute force it with a few likely ones. However, running gpg --export-secret-keys will always make the gpg-...
0
votes
2answers
272 views

Knowing when a key becomes compromised

I am trying to determine best practices for identifying a compromised key. I have had very little luck finding any material on this however was hoping there was some kind of service which would notify ...
3
votes
2answers
2k views

When adding a gpg key with homedir parameter error

When adding a key using the cmd Gpg2 –-homedir . –-gen-key And Im getting the error Can’t connect to the agent: Invalid value passed to IPC This is something to do with the homedir parameter but ...
1
vote
1answer
7k views

GPG2 Encryption - No public key error

When I generate my keys using gpg2 --gen-key and then I try to try to encrypt the file using gpg2 --batch --yes -r myemail@test.com --always-trust --homedir . -e test.text I get an error "...
5
votes
3answers
2k views

How does public/private key cryptography work, who generates the key pair?

I have a requirement to encrypt a file, get it to an external partner who will then decrypt the file using a key. My "basic" understanding is that I can generate the public and private keys, encode ...
0
votes
1answer
2k views

gpg does not ask for passphrase on one encrypted file

I have a test encrypted file on my computer that when I run gpg(2) --verify message.txt.asc I get: gpg: Signature made Tue Mar 3 21:16:41 2015 PST using RSA key ID ******* gpg: Good signature ...
1
vote
0answers
645 views

Duplicati uses symmetric encryption despite giving the recipient ID_key

I have a question regarding decrypt using gpg asymmetrically. I use duplicity encrypt copies asymmetrically. E.g: `Duplicati.CommandLine.exe backup s3://testduplicatigpg3 C:\Users\test\Desktop\tt --...
1
vote
1answer
4k views

How to recover files from infected. Vvv extention [duplicate]

Can any one help for how can remove this virus. Our all computer's files infected from this (.vvv) virus. We are using windows 7 Plz give me strong methods. If you need remote screen i will provide ...
3
votes
2answers
874 views

Why does PGP encrypt differently when piping into a file instead of printing the result?

I'll use the following PGP key stored in pub.pem: -----BEGIN PGP PUBLIC KEY BLOCK----- Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com> ...
3
votes
1answer
3k views

Why does duplicity require the GnuPG passphrase when rotating backups?

I am using duplicity 0.7.05 to periodically backup a directory that resides on a Linux system, using a GnuPG key pair with an encrypted private key. Since the public key is not encrypted, the ...
3
votes
1answer
7k views

Outlook missing “Publish to GAL”

Unable to encrypt emails with valid certificates in exchange environment. I just thought of publishing the public keys to GAL but Publish to GAL option is missing Things i've tried : Re-download ...
0
votes
1answer
293 views

openssl smime message signing: why do I need a -certfile key?

Here is how one should sign a message with openssl smime? according to the docs openssl smime -sign -in in.txt -text -out mail.msg -signer mycert.pem \ -inkey mykey.pem -certfile mycerts.pem But ...
11
votes
2answers
2k views

How are public keys “sent” to servers, and how are private keys “used” for SSH?

There are two Linux machines, A and B. Scripts running on A need to be able to SSH into B. So A generates a public key (probably an ssh-keygen-generated id_rsa.pub), and then uses its respective ...
3
votes
1answer
82 views

Should my OpenPGP key used for storing documents in the cloud expire?

I plan on doing a mass migration of all my local files to various cloud services since space is pretty cheap these days. I figure I should probably encrypt my data before I upload it, which is better ...
1
vote
1answer
1k views

GPG 2 decrypt from STDIN via pasting inconsistency

Does anyone know why in some cases you can do this: gpg2 -d And paste your GPG message into the terminal, type ctrl+D, get prompted for your passphrase and get the results to STDOUT? But in other ...
0
votes
0answers
493 views

How to sniff passwords remembered by applications?

Suppose someone forgets their password for a web application such as gmail, facebook or some other application installed on the system such as skype, but the web browser or skype still remembers the ...
0
votes
1answer
49 views

After Updating to SHA2, private and public doesn't match

I've upgraded to SHA2 certificate, but after upgrading the new certificate key doesn't match my old private key. Public key has changed after updating and it doesn't match to previous private key. ...
2
votes
3answers
5k views

How to get GPG working with Outlook 2013?

My OS is Windows 8.1 Update 1 x64. I have Outlook 2013 and just installed GPG4Win (latest, 2.2.2, full version). When I now launch Outlook 2013, I still don't see any UI/options to setup certificates ...