Questions tagged [rsa]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
60 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
0answers
21 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
1answer
86 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 - ...
0
votes
0answers
363 views

How to create certificate signed with RSAPSS using openssl command?

I tried https://gist.github.com/superseb/788a234647324b49ee5a56e07e3a91ac for commands, but getting following error in first command itself: sh-4.2$ openssl genpkey -algorithm rsa-pss -pkeyopt ...
0
votes
0answers
38 views

Signing HTTP Request with OpenSSL and RSA-SHA256

I'm trying to create a digital signature for a http request, based on this: https://rapidlink.piraeusbank.gr/node/1938 signature: The signing string, signed with the private QSeal key, and the result ...
1
vote
1answer
57 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 ...
0
votes
0answers
76 views

How can I know whether the BIOS is RSA signed or not if Windows is not starting?

Stuck in a bootloop. More on that here and here. Heard the solution out of it is by changing sata mode in BIOS from AHCI to IDE. My BIOS's advanced setting - where sata mode is - is hidden. I want to ...
0
votes
0answers
11 views

Why is the Key ID from an encrypted file different from the ID of the key used to encrypt it?

I have created a new key with gpg. For example let's say I get the following key pairs as a result: ~$ gpg --keyid-format long --list-keys /home/me/.gnupg/pubring.kbx --------------------------- pub ...
1
vote
1answer
151 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
0answers
18 views

Check if SSL certs are not expired both ECC and RSA?

I used to have some scripts to monitor certs for my sites are not invalid. This is generally not a problem as I use Let’s Encrypt certs but I remember couple of times when my beloved acme.sh failed to ...
0
votes
0answers
360 views

Importing .PEM key on Windows 7 on the command line

I am looking to import three PEM files, two certs plus a key, with this answer working to add the PEM certificates: The RSA key is generated by GCP for a MySQL instance and I receive this import ...
0
votes
1answer
201 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 ...
0
votes
0answers
20 views

How to speed up or remove CISCO switch RSA/DSA key generation?

the problem is that when i reboot my switch, every time it generates RSA and DSA keys, and it takes more than 5 minutes. I need to speed up their generation somehow (by pre-generating keys and saving ...
0
votes
0answers
8 views

Trouble using ssh keys for OpenSSH_3.1p1

I have an old powerpc system running an ancient flavor of linux called LynxOS. We have ssh available on it, although it has been impossible to get keys set up for password-less authentication. So ...
0
votes
0answers
19 views

Can we use secure keys (RSA) to have remote control on mysql?

I use DbForge studio to make remote on mysql in my Ubuntu Server on localhost. I can manage it using type:TCP and by user and password of my database on port 3306. Everything works truly. I created ...
6
votes
1answer
2k 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
0answers
143 views

Azure virtual server No supported authentication methods available (server sent: publickey)

I have created Ubuntu virtual machine on Azure server. As authentication method I have chosen SSH public key which I copy to init form while machine creating process. It is in one line form like ssh-...
0
votes
1answer
237 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
1answer
42 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
0answers
455 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
1answer
438 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
1answer
350 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
1answer
100 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
1answer
873 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
2answers
71 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
1answer
85 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
0answers
271 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
1answer
251 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 ...
3
votes
1answer
3k 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
0answers
27 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
1answer
74 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 -...
6
votes
0answers
3k 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
1answer
71 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
1answer
2k 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
0answers
677 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
1answer
131 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
2answers
261 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
1answer
984 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
1answer
761 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
1answer
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
0answers
932 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
1answer
2k 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
1answer
351 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
1answer
412 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 ...
0
votes
1answer
350 views

Permission denied (publickey)

This has dogged me for years. Two IDENTICAL servers. Logged in to both as 'bob'. Try to ssh from bob@server1 to bob@server2. Permission denied (publickey). On BOTH servers: rm -r ~/.ssh On ...
0
votes
1answer
7k views

Command line not letting me type password in PuTTY

A picture of the screen that I am stuck at: Operating System: Windows 7 Port: 27880 I have been setting up SSH in PuTTY to make my wiki family work, and I have experienced some problems typing the ...
0
votes
1answer
5k views

When trying to convert an SSH file, I got this error: Couldn't load private key (SSH-2 public key (OpenSSH format))

I have downloaded an SSH RSA key .pub file, and I have attempted it to convert it in the PuTTY Key Generator. However, I have had problems with converting it due to an error loading the key. The error ...
0
votes
1answer
134 views

How to connect multiple Virtual machines to SFTP using Key based authentication towards a remote machine

I have set of Virtual Machines (VMWare) and I want to connect to remote SFTP server using public-private key based authentication. Initial transfer of public keys from each of the VMs to remote SFTP ...
0
votes
0answers
115 views

Decrypt SSL traffic with the openssl command line tool 8

For my final steps in my script I followed this to obtain the client encryption key to perform the decryption with. client.random xxd -p crnd.bin ...
0
votes
0answers
157 views

Decrypt SSL traffic with the openssl command line tool 7

Generating the master secret/key I followed the steps outlined in my shell script. I validated that I am passing data correctly to it by manually entering these steps several times (entering $key ...