public-key Questions

3

Solved

As title, How to Calculate Fingerprint From SSH RSA Public Key in Java? I got an rsaPublicKey object from sample.pub and I calculated the fingerprint by using library Apache Commons Codec DigestUt...
Antirachitic asked 27/6, 2018 at 9:57

3

I want to 'manually' compare a digest/hash of a message with the decrypted signature value on this digest. For this, I want to decrypt the signature value (the signed digest) of the message with t...

4

I need to generating a RSA and DSA key pair (public and private key) in PEM format using java. I want the public and private key files to be opened with this format: -----BEGIN PUBLIC KEY----- M...
Saintpierre asked 15/12, 2013 at 18:32

19

Solved

I am trying to use my Mac Terminal to scp a file from Downloads (phpMyAdmin I downloaded online) to my Amazon EC2 instance. The command I used was: scp -i myAmazonKey.pem phpMyAdmin-3.4.5-...
Mogul asked 9/7, 2012 at 1:2

14

Solved

I am having issues with committing changes to my gear. I have tried to run rhc setup, I also deleted my .ssh folder and executed rhc setup again but that also didnt work. Not sure what changed bu...
Shaia asked 3/2, 2014 at 0:21

66

Solved

I'm on Mac Snow Leopard and I just installed git. I just tried git clone [email protected]:cakebook.git but that gives me this error: Initialized empty Git repository in `/Users/username...
Kristofor asked 15/4, 2010 at 7:46

10

I am trying to get a better grapple on how public/private keys work. I understand that a sender may add a digital signature to a document using his/her private key to essentially obtain a hash of t...

24

I'm trying to push a file to a git repo of a friend but errors on public key. git push origin testbranch Permission denied (publickey). fatal: Could not read from remote repository. Where and ho...
Phonolite asked 29/10, 2013 at 14:15

1

I'm exploring Hedera Hashgraph and aiming to retrieve all associated account IDs linked to a specific public key within the network. Could someone guide me on the best approach or the relevant API ...
Dreiser asked 21/12, 2023 at 19:38

11

I'm trying to reach the Gitlab server to clone a repo in a Ubuntu 20.10 computer, but I always get the message: ssh: connect to host gitlab.com port 22: Connection timed out fatal: Could not read f...
Documentary asked 15/12, 2020 at 2:16

3

TL;DR: RSA public key generated in iOS and stored in the keychain, exported as base64 and sent to a java backend, is not recognized. I'm implementing a chat encryption feature in an iOS app, and I...
Extrabold asked 23/12, 2018 at 18:50

4

Solved

I'm trying to pass around a public key from my iPhone to other parties, however I am unable to use the output from iOS. let parameters: [String: Any] = [ kSecAttrKeySizeInBits as String: 384, kS...
Fleischer asked 22/4, 2018 at 15:38

5

Solved

I am wondering if there exists some asymmetric encryption algorithm that would work with two different private keys, so that the encrypted message can be decrypted by either one of such private key...

3

I am trying to connect a remote server using JSch but I am getting "Auth fail" exception. Below is my code: String user = "user.name"; String host = "hostip"; try { J...
Unbalance asked 27/1, 2021 at 9:46

13

Solved

I have come across the issue as below when I use ssh login google cloud instance $ ssh -i DD2 [email protected] Permission denied (publickey). After some testing, I found that the cause of ...
Methylamine asked 31/7, 2018 at 13:27

9

Solved

I have created two GitHub accounts. One for my work user and one for my personal self. I needed to do catch up on some work and as such cloned my work repo onto my personal PC. In order to do simpl...
Nabala asked 16/1, 2014 at 11:40

32

Solved

I added the public SSH key to the authorized_keys file. ssh localhost should log me in without asking for the password. I did that and tried typing ssh localhost, but it still asks me to type in t...
Overlord asked 16/6, 2011 at 18:50

3

Solved

I'm trying to create a single file executable in Python and using Paramiko for my SSH. I need to eliminate external files such as private key files and try to go for embedded strings. I tried this ...
Bartolome asked 27/12, 2014 at 17:42

5

Solved

How can I transform between the two styles of public key format, one format is: -----BEGIN PUBLIC KEY----- ... -----END PUBLIC KEY----- the other format is: -----BEGIN RSA PUBLIC KEY----- ... ...
Baylor asked 4/8, 2013 at 3:17

13

Solved

I got a problem with adding an ssh key to a Vagrant VM. Basically the setup that I have here works fine. Once the VMs are created, I can access them via vagrant ssh, the user "vagrant" exists and t...
Royster asked 6/5, 2015 at 11:31

6

java.security.PublicKey#getEncoded() returns X509 representation of key which in case of ECC adds a lot of overhead compared to raw ECC values. I'd like to be able to convert PublicKey to byte arr...
Lammergeier asked 27/1, 2015 at 14:20

3

I want to create a X509 certificate using Java language and then extract public key from it. I have searched the internet and found many code examples, but all of them have errors (unknown variabl...
Multiplier asked 8/7, 2012 at 14:30

17

This is my first time accessing GitHub and I'm not experienced using a console. I am on a MacBook using Bash. When I try to access GitHub, I get this: git clone [email protected]:dhulihan/lea...
Afrikaner asked 22/10, 2014 at 11:2

2

My goal is to verify my id_token in JSON Web Token (JWT) format using jsonwebtoken verify method, which requires a public key as the second argument. My web application is a node js application. Ac...
Ashworth asked 14/4, 2021 at 19:40

13

Solved

I am having issues setting up OpenSSH for Windows, using public key authentication. I have this working on my local desktop and can ssh with a key from Unix machines or other OpenSSH for Windows ma...
Lactam asked 25/4, 2013 at 10:51

© 2022 - 2025 — McMap. All rights reserved.