Questions tagged [rsa]
The rsa tag has no usage guidance.
170
questions
-1
votes
1
answer
15
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 ...
2
votes
1
answer
209
views
Differences between "BEGIN RSA PRIVATE KEY" and "BEGIN OPENSSH PRIVATE KEY"
I'm trying to genereate RSA key to access somw git repositories in azure with ssh.
Having Ubuntu 22.04 and openssl version OpenSSL 3.0.2 15 Mar 2022,
I generate RSA key like this:
$ ssh-keygen -t rsa -...
1
vote
1
answer
57
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
22
views
Could Not Login SFTP using PGP Private Keys
I'm new to linux SFTP commands. I would like to know how to login SFTP if the server host gave me pair of PGP Public and Private key and want us to connect to them. using PGP keys
-----BEGIN PGP ...
0
votes
0
answers
68
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
27
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?
0
votes
1
answer
53
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
0
answers
662
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"
$ ...
0
votes
1
answer
5k
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
835
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
65
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
3k
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 ...
1
vote
0
answers
4k
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
130
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
434
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
1k
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
1k
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
36
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
277
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
401
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
254
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
306
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 ...
9
votes
1
answer
6k
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
295
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
43
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
920
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 ...
0
votes
1
answer
635
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
606
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
191
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
2k
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
150
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
240
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
316
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
355
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 ...
4
votes
1
answer
6k
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
31
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
89
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 -...
7
votes
1
answer
4k
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
75
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
3k
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/...
1
vote
0
answers
755
views
Private RSA vs Openssh key on Cygwin
When I generate a key with Cygwin I get a:
-----BEGIN OPENSSH PRIVATE KEY-----
but I need a:
-----BEGIN RSA PRIVATE KEY-----
(2048)
I use the command:
>ssh-keygen -t rsa -b 2048
How do I ...
0
votes
1
answer
179
views
SSH doesn't prompt for host authenticity, when connecting through jump-host first time
There is a jump host, called via ProxyCommand, to access some servers. In the .ssh/config file there is a Host definition for each server and the command for the jumphost (with %r and %h coming from ...
0
votes
2
answers
529
views
Is SSH setup specific to user-id?
If I create a SSH key setup for a abc user, abc can login to a remote server without prompting password.
With the same abc SSH setup, can an other user def can also SSH to remote server without ...
0
votes
1
answer
1k
views
Openssh 7_9: key exchange failed, expected SSH_MSG_KEX_GEX_GROUP
I'm trying to connect from SmartCVS via ssh to a Fedora 29 system but connection fails with an error message "key exchange failed, expected SSH_MSG_KEX_GEX_GROUP".
Since SmartCVS is somewhat ...
0
votes
1
answer
978
views
Permission denied when connecting via ssh (ipv6)
I use a key to authenticate. When I connect using ipv4 it's working.
Using ipv6 I can not login (using password or not).
Do I need a seperate rsa-key to manage ipv6 ssh's?
0
votes
1
answer
1k
views
Hostname in id_rsa.pub file [duplicate]
I've generated an ssh key pair with ssh-keygen. The id_rsa.pub file looks like this:
ssh-rsa someLettersAndNumbersABC123 username@host
The host part is what bothers me. Currently it comes from the ...
2
votes
0
answers
1k
views
Convert RSA Private CRT Key to key file
Using the command openssl rsa -in Alice.key -text -inform PEM -noout, it is possible to view a RSA private key's data. My question is that if I have a list of all of the properties (modulus, public ...
1
vote
1
answer
3k
views
Will stealing private key allow hacker to login to server?
I am trying to understand how rsa public private key pairs work. Lets say there are two servers:
Q and A.
In order for Q to ssh into A, key pairs are generated without passphrase in Q and public key ...
0
votes
1
answer
409
views
How to generate SSH keys for gitlab.com hosted project?
I have a project hosted as private repository on gitlab.com. I want to use gitlab ci/cd to automatically deploy my project to remote server QA_SERVER when code is pushed to master branch. Below is the ...
0
votes
1
answer
669
views
How to use public private keys in connecting with multiple servers?
Assume I have 4 servers A, B, C and Z and my desktop is MacBox and there is another developer Adam. I have already generated public private key pairs in my MacBox and copied public key to A so that ...