Questions tagged [rsa]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
101 views

In RSA or Assymetric Encryption, What EXACTLY is the purpose of the Private key? Do both hosts send their private key to each other?

First, let me know if i got anything wrong. The whole private and public key concept confuses me to no end. From what I know, basically RSA uses both public and private key. Public keys are PUBLICLY ...
lgrps's user avatar
  • 11
4 votes
1 answer
310 views

Unrecognised option while using puttygen in Windows cmd

I installed PuTTYgen on Windows using: putty-64bit-0.79-installer.msi (which I downloaded from the official PuTTYgen website). Except that when I go to Windows cmd and run puttygen -V, I get the error ...
UrbanDae's user avatar
0 votes
0 answers
161 views

Executing easyrsa sign-req script in batch mode

I'm building a component that would automatically generate certs for a VPN connection and pass them to the client. Is there a way to give the CA passphrase to the easyrsa sign-req script in a non-...
Kal800's user avatar
  • 9
-3 votes
1 answer
264 views

why RSA public keys contains non-ascii characters? [closed]

let's look at the public key in this post as an example: https://crypto.stackexchange.com/a/35105 MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/...
whoisit's user avatar
  • 297
2 votes
1 answer
738 views

Verifying the certificate chain with OpenSSL

I require the OpenSSL command to verify the certificate chain. In the certificate, the signature hash is signed by the signer's private key.
user avatar
0 votes
0 answers
313 views

Decrypt a file using an RSA key pair I created in PuttyGen

I created a public and private key pair in PuttyGen (RSA-2048) and gave the public key to a co-worker to encrypt a string. It was ultimately encrypted by a Microsoft Azure service and then the ...
arace2002's user avatar
1 vote
0 answers
80 views

Restarting Apache after installing RSA Web Agent

Good afternoon, We are currently attempting to install the RSA Web agent on our Apache web server, but run into problems after installation, when restarting the web server. The error we get is the ...
Bokkie's user avatar
  • 43
3 votes
2 answers
21k views

How to generate rsa-sha2-256 keys using ssh-keygen utility?

I want to generate rsa-sha2-256 ssh key pair using ssh-keygen utility. Can you please share the command for the same? For ssh-rsa, it's ssh-keygen -t rsa
raman bhadauria's user avatar
2 votes
3 answers
21k views

Alternative to ssh-copy-id on windows

I want to copy an SSH public key to a remote device on Windows. I'm not using PuTTYgen rather just OpenSSH through PowerShell. I ran ssh-keygen -t rsa And it gave me a public and private key in my ....
magnetosticker's user avatar
0 votes
1 answer
1k views

Clarification on what happens after the SSH Diffie-Hellman key exchange

I've watched and read a lot about how SSH works, also the mathematics behind diffie-hellman etc. The problem is that almost every YouTube video or article explains to a certain point where the key-...
Kenshie van Assche's user avatar
0 votes
1 answer
103 views

Do I need an RSA private key in order to upload files using SFTP with the SSH.NET library for .NET?

Is it essential that I have an rsa private key or is it possible to use a username and password? I ask because of this explanation for the SSH.NET library for .NET: “Establish a SFTP connection using ...
dan178's user avatar
  • 103
0 votes
1 answer
2k views

Fedora 36 - Cannot connect to ssh - Permission denied (publickey)

I'm trying to git clone from my employer's site, but I'm stuck at the "Permission denied (publickey)." error message. Right now, I just want to connect to the host, using ssh command. Added -...
Roso's user avatar
  • 1
0 votes
0 answers
2k views

Can't convert OpenSSH private key to RSA

There are numerous sources online including this one that say an OpenSSH private key: -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNz....blah etc....DBAUGBwgJ -----END OPENSSH PRIVATE KEY----- can be ...
confused-dev's user avatar
0 votes
1 answer
1k views

Generating keypair for backend issuing JWT token

I need to generate a keypair for my backend to issue JWT token. I am using MacOS. I tried on terminal: ssh-keygen -t rsa and path to /Users/john.brk/my_rsa. It generates my_rsa and my_rsa.pub. When ...
john's user avatar
  • 11
15 votes
1 answer
45k views

Differences between "BEGIN RSA PRIVATE KEY" and "BEGIN OPENSSH PRIVATE KEY"

I'm trying to genereate RSA key to access some git repositories in azure with ssh. Having Ubuntu 22.04 and OpenSSL version OpenSSL 3.0.2 15 Mar 2022, I generate an RSA key like this: $ ssh-keygen -t ...
Viacheslav Shalamov's user avatar
5 votes
1 answer
6k views

SSH with Dropbear: "Permission denied (publickey)"

I've create a RSA key pair with ssh-keygen. In /etc/dropbear-initramfs/authorized_keys I have the public key, and on my client machine I have the keypair in the /home/<name>/.ssh/ directory. ...
lasttry's user avatar
  • 53
0 votes
0 answers
2k views

RSA key-pair failing for SSH connection

Password authentication works flawlessly, but I cant get the PubkeyAuthentication to work. This is what I ran. I added the options to force Pubkey authentication since that is the one that does not ...
JeremiahDuane's user avatar
1 vote
1 answer
459 views

Are RSA and ECC certificates interchangeable?

Can I use a ECC certificate if a service/software (according to documentation) requires an RSA certificate? Does the software need explicit ECC support?
k-eight-s's user avatar
1 vote
1 answer
960 views

scp error: unexpected filename . / n00b dealing with Chef on Ubuntu

I am very new to the Ops world, like really really new so often what I do might feel like copy/pasting and I wouldn't know what command means what and what an argument is, so please bear with my ...
redsunpinksky's user avatar
1 vote
1 answer
6k views

self signed certificate throwing "RSA_padding_check_PKCS1_type_1:invalid padding" error

My domain uses a self signed certificate created like this: $ ISSUER="/C=EN/L=City/O=ORG" $ SUBJECT="/C=EN/L=City/O=ORG/CN=myserver.com" $ SAN="DNS:myserver.com" $ ...
Mnemosyne's user avatar
  • 111
1 vote
2 answers
40k views

For valid PEM I get unable to load private key by openssh

I have created a public/private key pair with this command: ssh-keygen -t rsa -b 4096 -f my-trusted-key -C "Just a public/private key" I can open the private key file and I see: $ cat my-...
Jim's user avatar
  • 185
2 votes
1 answer
4k views

openssl's d2i_X509 complains with "wrong tag"

Tried to parse a DER key from a minecraft server auth protocol. openssl asn1parse -inform DER correctly parses the key, but when I try to use d2i_X509 function from within C to parse this data, I ...
Tekno's user avatar
  • 123
0 votes
1 answer
763 views

SSH RSA and ED25519 keys passphrase issue

I have two types of keys based on RSA and ED25519 keys. however when I do ssh -i ~/.ssh/id_ed25519 <server> I get prompted to enter passphrase for RSA based key first then get asked for ED25519 ...
PhantomS's user avatar
  • 101
0 votes
3 answers
18k views

RSA SecurID Sofware Token application window not visible after screen configuration change

I regularly use the RSA SecurID Software Token Application on a Windows 10 laptop. Sometimes after my displays get refonfigured (because switching external displays), the application windows is not ...
Attila Csipak's user avatar
3 votes
0 answers
33k views

Extract RSA Public Key from public Certificate

I have public certificate with 2048 bit RSA public key for encrypt data. I need use openssl to extract this public key. Certyficate is PEM .cer file, and extracted key should be PEM too. I use command ...
InnerWorld's user avatar
1 vote
1 answer
136 views

Can I recover RSA-keypair by generating them at the same time and date?

I would like to generate a rsa keypair with openssl. For security reasons - for example loss - I would like to ask, if it is possible to regenerate these using openssl and executing the same genrsa ...
gagarin's user avatar
  • 13
0 votes
2 answers
2k views

Setting up ssh keys to connect to gitlab

*Note: Using windows 10 (I know, I know... that's what they gave me :/) Hi all, I'm new to using GitLab, but my company has their own GitLab server where I'm to house repos for my projects, push ...
W. MacTurk's user avatar
0 votes
0 answers
2k views

SSH permission denied (publickey,gssapi-keyex,gssapi-with-mic)

I'm not sure why I'm getting a permission denied error. Can anyone help me understand my log below? I'm using Windows Subsystem for Linux with an Ubunutu distro. I used ssh-keygen to generate my keys ...
klex52s's user avatar
  • 101
2 votes
1 answer
3k views

why am I getting an error when trying to generate rsa 128

For Educational purpose, I'm trying to create RSA 128 key pair using Openssl. when trying the following command I get an error with "key size too small" $ openssl genrsa 128 Generating RSA ...
A. Bader's user avatar
2 votes
0 answers
80 views

Java Help Understanding RSA Encrypt/Decrypt file and SD card

I have zero experience with Java or Android apps (have coding experience in C) and tried reverse engineering a [now defunct/unsupported] app which would take a serial number* and encrypt it using RSA ...
Dan Lewis's user avatar
-2 votes
1 answer
1k views

Windows SSH into CentOS using Private Key - Not working

I'm on Windows 10. Need to ssh into a Linux CentOS server. Trying both Putty and Windows SSH (turned on in Features.. Powershell?). Using PuttyGen, I generated a private & public RSA key pair - ...
d-_-b's user avatar
  • 127
1 vote
1 answer
2k views

ssh-keygen, is it possible same public key generated? (ssh public key duplicate)

Is it possible same public key generated? In the following example, the two keys(test1.pub, test2.pub) created are different public key. $ ssh-keygen -C IsItPossible Generating public/private rsa key ...
SangHak Lee's user avatar
1 vote
1 answer
993 views

Encrypted RSA Private KEY - What is this?

I'm new on cryptography and I have so many trouble to understand a lot of things. On my screen, I use Openssl to generate RSA private key and I use DES3 to encrypt this private key. Then I type my ...
user avatar
0 votes
1 answer
768 views

How to connect to Windows 10 from Linux using RSA key

I need to SSH from Ubuntu server into Windows 10 (OpenSSH). Everything is fine when I connect using username and password, but I have trouble if I introduce RSA key On Linux I ran ssh-keygen and ...
Monardo's user avatar
18 votes
1 answer
20k views

How to check if your ssh keys are in the ssh-rsa2 format?

So recently there were news of OpenSSH dropping support for SHA-1 logins and I am trying to understand which format they are referring to. Since years i've been generating keys via ssh-keygen -t rsa -...
strudelj nudelj's user avatar
0 votes
1 answer
418 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, ...
user3379608's user avatar
0 votes
1 answer
51 views

Does SSH keys stores host informations?

I was wondering if SSH keys stores the host information or if it's possible by any way? As far as I know RSA or ED25519 keys doesn't stores the host information and researches doesn't gave me any ...
Nathanael Demacon's user avatar
0 votes
0 answers
2k views

ssh-add with valid RSA key fails

I'm attempting to add an SSH key to the existing www-data user on Ubuntu 18.04. $HOME for www-data is /var/www and the key lives in /var/www/.ssh Permissions for .ssh are 700 The key is epp_deploy ...
JRad the Bad's user avatar
1 vote
1 answer
1k views

How to manage RSA keypair in TPM2 using Linux

I'm trying to use TPM 2.0 chip in my laptop to manage new pair of RSA keys and create a CSR on top of new private key but when I list certificates managed by my TPM, I got only keys labeled as public ...
Jiri's user avatar
  • 15
0 votes
1 answer
1k views

How to list all public RSA .pem file on any machine

Sorry for changing completely my question but I cannot delete it. I hope that reformulating my question will shape a better question. I'm trying to find all public RSA .pem files on Windows/Linux. ...
Francesco Mantovani's user avatar
0 votes
1 answer
428 views

Can I Use My OpenSSL CA to Sign My OpenVPN Certificates?

I'm not sure if it sounds like a stupid question but all the guides I've looked at when it comes to making certificates for OpenVPN all use Easy-RSA. Some of my servers such as my NAS, and ...
willowen100's user avatar
1 vote
1 answer
4k views

OAEP padding for OpenSSL

I'm trying to decrypt a file using a private RSA key using OpenSSL. It keeps giving me the same 3 errors that I believe can be solved by adding oaep padding to it. What is the syntax for adding the ...
user avatar
0 votes
2 answers
343 views

SSH - Key based authentication fails after password prompt

I'm running into SSH errors when connecting to a server as a particular user when using key based authentication with an associated password on the key. This is on an IBM i system. I've added the ...
d.lanza38's user avatar
  • 101
0 votes
1 answer
1k views

SSH asks password even so key has been added

I generated a ssh key for "ansible" user and it works all clients but one has SuSE (SLES) 11.4 OS. Host side ~/.ssh directory content: -rw-------. 1 ansible ansible 1675 May 14 2018 id_rsa -rw-r-...
Jo Shepherd's user avatar
1 vote
0 answers
479 views

What is C# RSACryptoServiceProvider doing under the hood when Encrypting using RSA?

When I drill down into the .Net source code I cannot find the code that actually runs when rsa.Encrypt is called, maybe it's running code within a DLL because I cannot find where the method is ...
MrNoise's user avatar
  • 11
0 votes
1 answer
619 views

SFTP/SCP command re-prompts for passphrase

I'm logged into remote unix server and want to transfer file to sFTP. Issue is that entered passphrase is not accepted and constantly re-prompted. This is my setting of folder and RSA file ...
marcin2x4's user avatar
  • 103
7 votes
1 answer
17k 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)...
pratik swami's user avatar
1 vote
0 answers
37 views

RSA SecurId HTTPS redirect just shows "redirect"

We have set up a site on IIS8 using RSA SecurID. We have clicked "Redirect HTTP Connections to Secure Server" and "Require Secure Connection to Access Protected Pages". However, when we go to http://...
Mike's user avatar
  • 111
0 votes
1 answer
136 views

Nginx server return duplicate intermediate cert when enable both ECC and RSA cert in Nginx

I have configured Nginx to support both ECC and RSA cert in a hybrid mode. After enabling, used below cmd to get the full chain cert from my server: openssl s_client -showcerts -connect server:443 -...
adiggo's user avatar
  • 101
8 votes
1 answer
8k views

Generating JWT RS256 signature with openssl

I'm trying to sign a JWT token with the RS256 algorithm using openssl. Take the following example token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9....
fstanis's user avatar
  • 358