Questions tagged [rsa]
The rsa tag has no usage guidance.
180
questions
2
votes
1
answer
87
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.
0
votes
0
answers
107
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 ...
1
vote
0
answers
26
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 ...
0
votes
2
answers
3k
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
0
votes
2
answers
3k
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 ....
0
votes
0
answers
344
views
Can openssl be used to encrypt/decrpyt files using RSA OAEP as the mechanism, if so how?
I'm trying to use openssl to decrypt a file encrypted using RSA OAEP with md=sha256, mgf1=sha256.
So far, I have not had any success. To test my understanding of the openssl command and rule out ...
0
votes
0
answers
402
views
Still requiring ssh password after setting SSH Key on github
I switched my proxy client from ssr to clash for windows for some reason. Then I got an Error prompt of DNS changing of github.com in known_hosts while using git clone.
So I deleted the item and git ...
0
votes
1
answer
624
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-...
0
votes
1
answer
44
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 ...
0
votes
1
answer
1k
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 -...
0
votes
0
answers
1k
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 ...
-1
votes
1
answer
609
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 ...
8
votes
1
answer
24k
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 ...
4
votes
1
answer
3k
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. ...
0
votes
0
answers
1k
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 ...
0
votes
1
answer
187
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?
1
vote
1
answer
732
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 ...
1
vote
1
answer
3k
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"
$ ...
1
vote
1
answer
25k
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-...
2
votes
1
answer
3k
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 ...
0
votes
1
answer
299
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 ...
0
votes
2
answers
12k
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 ...
2
votes
0
answers
21k
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 ...
1
vote
1
answer
132
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 ...
0
votes
2
answers
978
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 ...
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 ...
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 ...
2
votes
0
answers
68
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 ...
-2
votes
1
answer
737
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 - ...
1
vote
1
answer
1k
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 ...
1
vote
1
answer
544
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 ...
0
votes
1
answer
453
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 ...
16
votes
1
answer
14k
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 -...
0
votes
1
answer
347
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
1
answer
45
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 ...
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 ...
1
vote
1
answer
818
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 ...
0
votes
1
answer
957
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.
...
0
votes
1
answer
282
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 ...
1
vote
1
answer
3k
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 ...
0
votes
2
answers
255
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 ...
0
votes
1
answer
911
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-...
1
vote
0
answers
426
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 ...
0
votes
1
answer
506
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 ...
5
votes
1
answer
12k
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)...
1
vote
0
answers
34
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://...
0
votes
1
answer
109
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 -...
8
votes
1
answer
6k
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....
0
votes
1
answer
82
views
Verify Sha256Rsa message
I have a plaintext, rsaSignature (in hex)
and a cert (.cer)
How can i verify the rsasignature with the plaintext and cert given.
I know that i am required to extract the public key from the cert.
I ...
0
votes
1
answer
4k
views
Attempt to encrypt plain text with RSA public key throws error "unable to load Public Key"
I received an RSA public key from a colleague by way of a pem file:
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEAwGbtPQW6k1S1N8GM4UDxwexV4M+5BHcjs/l397/Mjt/J9+yL4PMw
cdLTnO/PHwCne3DdWsxHoZA/MIHRF+K/...