Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
-1
votes
0answers
17 views

How does Amazon AWS's private key and public key pair work?

Amazon AWS uses a private key and a public key pair. The public key gets stored on AWS and the private key is a *.pem file that you download and use to connect via ssh. I'm interested in the nuts and ...
1
vote
1answer
116 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 ...
1
vote
1answer
41 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
488 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
19 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
98 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
30 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,...
2
votes
3answers
2k 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
0answers
117 views

Automate SFTP connection with both Password and PublicKey

I am trying to SFTP into a server hosted by someone else with both password and publicKey authentication enabled for it. I tried connecting to it with sftp -v -i privateKeyPath user@serverip But ...
0
votes
1answer
101 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
517 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
9k 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
189 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
631 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
204 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
483 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
95 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
1k 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
106 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
410 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/...
0
votes
1answer
116 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
76 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
203 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
5k 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
1k 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 ...
2
votes
0answers
573 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
736 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 ...
2
votes
1answer
6k 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
251 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
76 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
444 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
48 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. ...
1
vote
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 ...
1
vote
1answer
1k views

Import public key (plain text) into Outlook 2010

I have a public key: -----BEGIN PGP PUBLIC KEY BLOCK----- ... -----END PGP PUBLIC KEY BLOCK----- Is there any possibility to use this public key in Outlook 2010, without any add-ins? I know about ...
38
votes
2answers
18k views

Can you extend the expiration date of an already expired GPG key?

Lets say I add an expiration date to a GPG/PGP key, then for some reason am unable to extend the expiration date of the key before its time is up. Assuming I still have access to the private key (and ...
0
votes
2answers
616 views

Can a client server host multiple private ssh key for same profile?

I have a client who is using Tectia Client to connect to our UAT. They created a ssh pair and imported the private key to the profile they are using to connect,and passed us the public key. Now we ...
4
votes
1answer
278 views

Is uploading your openssh public key to ~/.ssh/ for a given user safe?

I like to upload my public key (eg: ~/.ssh/id_rsa.pub) to various servers that I connect to on various networks for work. I use this same public key on Github. If I am on a shared user account and I ...
3
votes
0answers
460 views

Is there a tool like dm-crypt/luks using RSA encryption?

Is there a library/tool available for linux, similar to dm-crypt/LUKS using RSA encryption instead of symmetric ciphers? I want the "public side" to only be able to create these volumes, and the ...
1
vote
3answers
2k views

Is there a way to revoke a GPG encryption key?

OK, so as I understand it, the key revocation mechanism is used to revoke a signing key in your web of trust: so you say to other GPG users that your previously-used identity has been compromised, and ...
7
votes
1answer
3k views

How to ASCII-armor my public key without installing GPG?

I would like to upload my public key to a key server, but I already have my key infrastructure in place without GPG and I don't want to install extra software I don't need. Is there an easy way to ...
1
vote
2answers
2k views

Errors generating gpg keypair

I posted this originally on stackoverflow, but was told that it was offtopic and this would be the better place to post it, so I am reposting it here and deleting my original topic. I have a rather ...
1
vote
0answers
2k views

why does public key used to authenticate ssh seem to expire after a while?

I want to ssh from client to server without a password, so I append client's public key to server's authorized_keys. While previously I needed a password, immediately after I do the above, I don't ...
1
vote
1answer
6k views

What is the role of cakey.pem and cacert.pem in addition to .key and .crt based encryption

I have .key file which holds the private key data, .crt file which would be certificate with public key and, to my knowledge, that's it for public key encryption, right? Not exactly. In order to ...