Questions tagged [private-key]

170 questions
4
votes
1 answer

Authentication using SSL certificates -- General Question

SSL client authentication using certificates -- it's a complex topic, and I think I've learned just enough to make it even more complex. Here is my basic understanding: A public and private key are generated by a certificate authority. This…
Nick
  • 203
  • 1
  • 2
  • 3
3
votes
1 answer

SFTP asks for passphrase for unencrypted private key, but WinSCP works fine?

Summary: I want to SFTP a file from one server to another, authorizing with a private-key. I believe the public key is installed correctly (WinSCP lets me log in with private key), and I deliberately did not create a passphrase when generating the…
Paul
  • 173
  • 2
  • 2
  • 9
3
votes
1 answer

Obtaining the private key from an SSL certificate managed by GCP

I'm using Google Kubenetes Engine and I put an SSL certificate on my Ingress using Google-managed certificates I've discovered I can view the certificate using this command: gcloud beta compute ssl-certificates describe certificate-name However…
Toby 1 Kenobi
  • 287
  • 2
  • 13
3
votes
1 answer

Windows Server 2019 - Certificate with private key export, encryption type

I noticed that starting in Windows Server 2019, and an unknown version of Windows 10 (I'm running 1903, and I tried on 1809 as well), when you export a certificate and choose to export it's private key as well, you have an option to choose the…
Aura
  • 471
  • 1
  • 5
  • 12
3
votes
2 answers

Jsch Exception: Auth Fail with private key

I'm using below code to connect remote server and I followed below steps to connect private/public key generation & concatenate of public key with authorized key. Code: private Session createSession() throws JSchException { JSch jsch = new…
Shailu
  • 31
  • 1
  • 1
  • 3
3
votes
2 answers

Cannot ssh with shared keys on CentOS 7 server refused our key

I cannot ssh to a CentOS 7 server using pre-shared keys, I get a "server refused our key" message. Below is an ssh attempt using -vv OpenSSH_7.2p2, OpenSSL 1.0.2h-fips 3 May 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug1:…
feub
  • 169
  • 1
  • 2
  • 9
3
votes
1 answer

How to change the ssh auth method in vagrant, from password to private key?

I run vagrant(1.7.2) on Mac OS(10.10.3) with Snappy Ubuntu Core(15.04 stable), for docker, using VirtualBox 4.3.28 as a provider. I can manually ssh in the Ubuntu guest OS by a private key method in Mac terminal. But the "vagrant ssh" command sticks…
Brady Lee
  • 41
  • 1
  • 6
3
votes
1 answer

SSH via terminal succeeds, but same SSH connection via Ansible fails on same machine?

Can anyone possibly shed any light on why this is happening? I am logged into machine A, the client, with user basicuser. When I try to run an ansible playbook on machine B (server machine, as remoteuser). 1) My private/public keys DEFINIELY match,…
Sam Levin
  • 510
  • 1
  • 5
  • 11
3
votes
2 answers

Ssh-add and contacting server unsuccessfully

I forgot how to do this procedure. I did on OSX 10.9.1 run ssh-keygen in my server moved the private-key id_rsa to my laptop's $HOME/.ssh/id_rsa, removed the private key id_rsa from my server create the following $HOME/.ssh/config in my…
3
votes
1 answer

Amazon EC2 pem file stopped working suddenly

I was connecting to Amazon EC2 through SSH and it was working well. But all of a sudden, it stopped working. I am not able to connect anymore with the same key file. What can go wrong ? Here's the debug info. ssh -vvv -i ~/Downloads/mykey.pem…
Jashwant
  • 131
  • 3
3
votes
1 answer

Where Is an SSL Private Key Stored?

My particular situation applies to Windows but I welcome knowing how this would differ from other practical applications. The subsets contain information that I'm basing my logic on, please correct them if I am mistaken. Here is what I'm…
Gary
  • 267
  • 2
  • 4
  • 10
3
votes
1 answer

Private key authentication with pam_ldap

I'd like to set up pam_ldap on some of our servers so that we can centrally manage who has access to which server, and easily revoke access if e.g. someone leaves the company. I've done some research and got this working. Hooray! However I'd also…
Gareth
  • 1,416
  • 2
  • 11
  • 12
3
votes
1 answer

Powershell self-signed certifcate private key not exportable

Using Powershell, I'm attempting to create a self-signed ssl certificate with a private key that can be exported. I've read and followed various tutorials, however the end result is always that no private is exported. I'm using Powershell because…
3
votes
0 answers

How do I fix 'Missing stored keyset' through a remote powershell session (without also being RDP'ed in)

I'm trying to script the installation of our on-premise CI/CD agent. Part of that is installing some certificates Powershell Import-Certificate -FilePath self_signed_CA.cer -CertStoreLocation cert:\LocalMachine\root Import-PfxCertificate -FilePath…
3
votes
3 answers

Securing SSL certificate private key with nginx

I've been researching how to secure privaye keys for SSL certificats using nginx as a webserver, but have not been able to find many satisfactory answers. Specifically, for a client who wants to me to deploy a website under their own sub-domain,…
Buno
  • 155
  • 2
  • 9