Questions tagged [private-key]
The private-key tag has no usage guidance.
132
questions
0
votes
0
answers
21
views
gpgsm: Cannot import private key
For signing emails, I requested an S/MIME certificate using the German academic DFN service. AT the end of this process, I get a .p12 file (PKCS12). I can convert this file to PEM using
openssl ...
0
votes
1
answer
47
views
How to incorporate multiple .pem certification files to a single .pfx file?
I'm working on IIS on Windows 2019. I have given certificate files; cert.pem, chain.pem, fullchain.pem and privkey.pem. I believe that I have to convert this to .pfx to incorporate it to the IIS. How ...
0
votes
0
answers
67
views
SFTP with public and private keys
I want to use private and public keys for access to the SFTP server, instead of a username/password mechanism. SFTP server should be available only for a specific user that can log in from whatever IP ...
0
votes
1
answer
217
views
How to prevent or workaround Sysprep destroying certificate's private key
I have a Windows 10 image which contains a Certificate to be used by the main application. However, after I run a sysprep /generalize on the image, the Certificate's private key appears to be ...
2
votes
1
answer
225
views
SSH asks for passphrase three times and authenticates no matter what is entered
When I attempt to SSH into a remote Linode server while using public key/private key and authentication, I'm asked to enter the key passphrase three times before it authenticates, and asks me the user ...
0
votes
0
answers
57
views
SSH Login from Termius using HashiCorp Vault's Certificate based Authentication on any Linux Server
Can we able to login to the Linux server with Certificate Based Authentication (which is provided by Hashicorp Vault) through Termius ?
I have a requirement to login through Public key and Private key ...
0
votes
0
answers
492
views
Unable to load CA private key when creating the intermediate pair
Following the tutorial at LINK to create the root pair and intermediate pair.
Creating the root pair works fine, but when I try to create the intermediate pair using:
openssl ca -config openssl.cnf -...
1
vote
1
answer
86
views
Can we use a server's own private key from .ssh folder to SSH into it?
I have a remote server:
hostname = rserver.com
port = 22
user = john
The remote server has a key pair id_rsa.john and id_rsa.john.pub stored in ~/.ssh/ with proper permissions.
Assume that I somehow ...
0
votes
1
answer
40
views
Changing a minisign password
I have a minisign key that I want to change the password for.
The manpage doesn't mention anything about changing a password, is this possible?
0
votes
0
answers
98
views
Fail to connect to EC2 instance from the root user's shell - Permission denied (publickey) - Windows 10
I can connect to EC2 instance from my computer with SSH as a user tomas :
tomas@machine:~$ ssh ubuntu@ec2-3-91-55-214.compute-1.amazonaws.com
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1045-aws ...
0
votes
0
answers
181
views
OpenSSL - Create private key doesn't prompt password
I installed OpenSSL 1.1.1 on windows https://kb.firedaemon.com/support/solutions/articles/4000121705#Download-OpenSSL
When I create private key I don't get password prompt
openssl genrsa -aes256 -out ...
1
vote
0
answers
422
views
WinSCP PuTTY key format too new [duplicate]
I am trying to connect to my server with WinSCP. I created a key by PuttyGen but when I am trying to connect to it by WinSCP it says that my PuTTY key format too new, Image of the error. Can somebody ...
0
votes
1
answer
35
views
SSL for subdomain
Can anyone please tell me, we have an SSL certificate for *.example.com but now we need separate SSL certificate for abc.example.com only for one subdomain. Is it possible? *.example.com which is ...
5
votes
2
answers
3k
views
How do I get WinSCP to connect to an SSH server with a private key that I specify?
How do I get WinSCP to connect to an SSH server with a private key that I specify.
I don't see the option.
For example, I have a private key I created with SSH in cygwin. (id_rsa)
$ ls ~/.ssh -l
-...
0
votes
1
answer
179
views
Can `ssh-agent` somehow interface with Windows' built-in "keychain"-like functionality?
tldr; Does OpenSSH integrate with Windows, so that on unlocking Windows ssh-agent will "unlock" its password-secured private keys?
On macOS and in Linux you usually have some kind of ...
1
vote
1
answer
574
views
Why am I getting this error when attempting to export a private key with Mimikatz?
I’m using Windows 10 (19041.867) and trying to use Mimikatz (2.2.0 20200918) to export a private key marked as non-exportable by the certificate export wizard.
After using the following commands:
...
0
votes
1
answer
35
views
Bastion with private keys, jailed users and proxycommand
I want to setup a bastion for SSH and tunneling HTTP :
let the user use a private key stored on bastion without having read access to it
permit the use of proxyjump (or proxycommand) on the client
...
1
vote
1
answer
237
views
Key refused WinSCP/PuTTY issue when connecting to Windows OpenSSH server
I'm trying to configure a private key for use use with WinSCP and PuTTY/Plink but I'm stuck (trying to connect from Windows 10 to Windows 2012 Server).
I have OpenSSH installed on my windows server ...
0
votes
1
answer
63
views
SSH Connection with keys (no password) follows a One-way traffic?
I have a general question about SSH connections. Have already checked some related posts and documents about the matter but could not find a straight answer.
SSH Connection using keys presumes the ...
1
vote
1
answer
238
views
Public and private keys in Google Cloud and WinSCP
I'm trying to transfer a directory of files from my local Windows 10 machine to the remote machine in Google Cloud. I'm following this tutorial to connect WinSCP to the GCP.
But in step 7 I have to ...
3
votes
1
answer
499
views
I have a ppk key file open in Notepad, but I do not remember it's passphrase. Can I retrieve the passphrase?
Basically the heading, I created a private key file using PuTTY a few days back and forgot the passphrase. Luckily, the file is still open in Notepad. I can see it's contents, but I cannot open it in ...
0
votes
0
answers
51
views
How to export Windows network certificate with private key for use with Linux
For context, I need to connect to a network which requires a certificate to connect. The program to install the certificate is only available on windows and Mac. I successfully installed the ...
0
votes
1
answer
997
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
1
answer
2k
views
Putty Private/Public Key Pair - Generate Certificate
I have generated a private/public key pair using Putty. I have a private key file with extension .pem and public key file with extension .pub.
Now I want to create a certificate from that and import ...
0
votes
1
answer
289
views
should user have access to .gnupg/private-keys?
[I am new to using command-line gpg and might have messed up some steps during key creation. For privacy purposes I am redacting all key information with [REDACTED]]
My gpg has my pubkey listed
$ gpg -...
0
votes
1
answer
733
views
SFTP connection works from Windows (WinSCP) but not from Linux, why?
I'm trying to connect to a remote linux server using a public key (it's not my server). I was given the public key and verified that I can connect just fine using WinSCP from a PC. However, the real ...
0
votes
0
answers
267
views
Prove Private Key Encryption Backup is Safe
Cloud backup services such as iDrive and Acronis offer private key encryption. The important feature is that they offer this service before upload with the ability to store the encryption key ...
0
votes
1
answer
86
views
Unexplained cached public fingerprint for private ssh key with ssh-keygen
I'm having a weird problem with SSH.
I'm using ssh-keygen -lf id_rsa to generate the public fingerprint from my private ssh key id_rsa.
However, no matter how I replace or change the contents of my ...
3
votes
1
answer
4k
views
Generating private+public keypair for SSH: difference between ssh-keygen and openssl?
I want to create private and public key pairs to be used for SSH authentication.
I can't figure out the difference between this:
openssl genrsa -out MyPrivateKey 4096
openssl rsa -in MyPrivateKey -...
13
votes
2
answers
12k
views
How to revoke a GPG Key and upload in GPG server?
I have create GPG Keys for code signing and created a revocation certificate also. As far as I know, if key is compromised then i can revoke the key using revocation certificate.
Can someone suggest ...
0
votes
1
answer
431
views
How to configure Fail2ban with private key ssh connection on CentOs 7
I tried to install Fail2ban on my Centos 7 machine to prevent force brute connection on ssh server.
I'm using a private key with a passphrase to connect. I tested Fail2ban but it doesn't block me ...
11
votes
1
answer
21k
views
How to quickly identify SSH private key file formats?
Triggered today by Remote Desktop Manager, whose SSH Key Generator offered to save a private key in OpenSSH format, but then proceeded to store it in PKCS#1 / OpenSSL format, while using the same ...
0
votes
1
answer
130
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 ...
0
votes
1
answer
333
views
Unprotected Private Key File
I have an Amazon EC2 instance that I have been using to learn networking concepts on, today I tried to connect via SSH and was prompted with the following error.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
0
votes
1
answer
858
views
How to configure Tomcat to use SSL encryption with the private key stored on a remote server?
I want to know if there is a way to configure Tomcat server.xml to use the SSL
encryption with a private key stored remotely on a server
I can imagine the server configuration would be something like ...
1
vote
0
answers
128
views
How do I manually connect to a WPA2 EAP-TLS school network using cloudpath on linux?
I’ve been trying to join my school’s wifi network with little success.
Our school uses Cloudpath Enrollment System (used to be called Xpressconnect or something). All devices have to install and run ...
4
votes
1
answer
7k
views
How to convert an existing private key into ppk format using ssh-keygen?
I have a private key private.key) in format -----BEGIN RSA PRIVATE KEY-----IEpAIBAAKCAQEAvKwuhMiQR/THmjK.....-----END RSA PRIVATE KEY-----, and I am trying to convert it in the format that putty (.ppk)...
2
votes
1
answer
5k
views
"Unprotected private key file" when accessing a private key on volume in Docker Windows host
Private key is mounted using volume in docker container. Permissions on the host system (Windows) are defined as -r--r--r--. But when i run compose file get this error "Permissions 0755 for '/root/....
1
vote
0
answers
350
views
importing public key with GNU Privacy Assistant (win 10)
I am trying to import my public key that I generated with Kleopatra and GNU Privacy Assistant.
First I generated my public and private keys. I then export my public key and save it to my desktop (...
6
votes
1
answer
13k
views
PSFTP connection using key authentication
Using PuTTY to SSH onto server. But can't work out how to connect to SFTP.
Private key is on a USB, maybe that's where I'm going wrong !?
I have tried various ways e.g. PSFTP, but can't really find ...
2
votes
1
answer
643
views
Using encrypted SSH key generated by PuTTYgen when connecting via SSH with PuTTY
I generated my public/private key couple with PuTTYgen, and now I want to use them to connect to a remote Linux host via SSH. However, PuTTYgen prompted me to save the private key "with a password" (I ...
6
votes
1
answer
6k
views
How to use ssh_config with matches for users
I'm trying to configure my ssh_config (CLIENT) to use different keyfiles depending on the user for the same host, but unable to make it work.
What is wrong?
It says bad arument
Host myServer
...
0
votes
0
answers
70
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,...
-1
votes
1
answer
142
views
Cant use openssh on windows with key authentication
I can't use my private key (i disabled password auth entirely) because Of "bad permissions"
C:\Users\Patron>ssh -i C:\Users\Patron\id_rsa -p 993 root@my.ip.goes.here
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
0
votes
2
answers
50
views
Issues understanding CA certificates
I have misconceptions regarding CA (Certificate Authority) certificates. No matter how many things I read, it is still not fully clear.
Let's take an example, Bob accesses a website. In order for ...
0
votes
1
answer
1k
views
PuTTY ssh tunnel port forwarding through management server with private key
I'll try to be as detailed as possible.
I try to connect to a server running ActiveMQ and want to forward the port 8161 to port 8162 on my local machine in order to prevent problems when I run a ...
2
votes
1
answer
602
views
SFTP to remote server
So I'm trying to SFTP to a server that has been set up by an external company for sending shipping data.
I have a username, a host and a private key file.
I can use WinSCP on my Windows 10 Machine ...
0
votes
0
answers
597
views
Error: Disconnected: No supported authentication methods available (server sent: publickey) on mac using filezilla
first I'll point out that I do not have much experience using SFTP to connect to a server and using public and private keys. So please, answer assuming that I know nothing about what you're talking ...
5
votes
2
answers
7k
views
Windows 10 ssh, Load Key : Operation not permitted
I have a private ssh key generated by PuTTYgen, placed in C:/Users/my_user/.ssh/id_rsa. When I ssh to the remote host, Windows complain:
Why is the Operation not permitted?
per comment request, the ...
0
votes
1
answer
2k
views
Able to decrypt previously encrypted messages without passphrase, but can't export GPG private key
I feel really stupid asking this, but why not. I have a bunch of files I encrypted a while ago with a gpg key pair that is password protected. Since then, I've forgotten the password. But the key must ...