public-key

Could not generate ssh public key for heroku in Windows 7

三世轮回 提交于 2019-12-03 09:25:00
While I am trying heroku login through cmd in my machine, it says Could not find existing public key Would you like to generate one? [YN] After that when I press 'y' and enter it says Generating new ssh public key Could not generate key: "ssh-keygen" is not recognized as a internal or external command operable program or batch file Please help me. stys Heroku toolbelt includes git distribution which includes the required ssh-keygen.exe . I've just found it in C:\Program Files\git\bin . Locate your git folder and add it to your system path as described here: superuser.com/questions/284342/ I

Location of container for public and private keys in Windows?

烈酒焚心 提交于 2019-12-03 06:22:06
I am trying to store my public and private keys in a container using following code: CspParameters cp = new CspParameters(); cp.KeyContainerName = "Test"; RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(cp); What I'd like to know is the location of the container. Is the location of the container in the file system? Joe You'll find the key files in the following directory (*): Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), @"Microsoft\Crypto\RSA\MachineKeys") You can get the filename for a given key as follows: CspParameters cp = ...;

Any tutorials on public key encryption in java? [closed]

自古美人都是妖i 提交于 2019-12-03 06:08:00
I've been able find information on symmetric encryption and hashing but I've been having quite a bit of trouble finding much information on any sort of public key encryption for java. What I'd like to do is make a very simple proof of concept program that takes a string ( or a file I suppose), encrypts it with a public key and then decrypts it with a private key. Any tutorial links or examples would be appreciated. I just want to make something demonstrating how you can use public key encryption in Java. Loki There are quite a few resources on the web about that. Basically it turns around the

Extract public key from certificate in DER format [closed]

空扰寡人 提交于 2019-12-03 06:06:06
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I have a .cer certificate file, and need to extract the Public Key. I can only extract to PEM format. The "outform" parameter does nothing . openssl x509 -inform PEM -in certificate.cer -outform DER -pubkey -noout > publickey.der Is it possible to extract in DER format? Solved decoding the base64 PEM file: openssl x509 -in certificate.cer -pubkey -noout | openssl enc -base64 -d > publickey.der Any other idea is welcome.

git push heroku master permission denied on VISTA

China☆狼群 提交于 2019-12-03 06:01:29
问题 (Using Vista)I'm trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I've tried to create an SSH key so many times with this: `ssh-keygen -t rsa` It seems to go perfectly. I have it on my C:/Users/***/.ssh folder. I now try to clone an app i forked in GitHub. When I try to clone it on the rails_apps directory, I get a message saying Permission Denied(public key). I found a solution on the net saying that I should run this first: `ssh-add` So I tried doing that.

Read public key from file in keystore

女生的网名这么多〃 提交于 2019-12-03 05:08:39
问题 Hi I want to extract public key from KeyStore using Java code I am creating a keystore keytool -genkey -alias mykeystore -keyalg RSA -keystore mykeystore.jks -keysize 2048 And exporting the public into another file keytool -export -alias mykeystore -keystore mykeystore.jks -rfc -file publickey.cert How can I get the Public Key String from keystore or the publickey.cert file using the Java code? Thanks. UPDATE public static void main(String[] args) { try { FileInputStream is = new

SSH: “Bad passphrase” after generation of public key

主宰稳场 提交于 2019-12-03 04:44:39
When I execute these commands (setting a passphrase, after the first)... $ ssh-keygen -t dsa $ chmod 600 my_key $ chmod 600 my_key.pub ...and then, to test the passphrase... $ ssh-add my_key.pub ...I keep getting: Bad passphrase, try again for my_key.pub: Bad passphrase, try again for my_key.pub: Bad passphrase, try again for my_key.pub: Bad passphrase, try again for my_key.pub: ... What am I doing wrong? You're trying to add public key to the agent, that one isn't pass-protected, the private one is. Try adding your private key and it should work. 来源: https://stackoverflow.com/questions

git clone fails for Heroku project

有些话、适合烂在心里 提交于 2019-12-03 03:58:32
问题 (on Mac) I'm trying to clone my project from my new computer. I first generated the ssh key pairs: heroku keys:add /Users/y/.ssh/heroku_rsa.pub heroku keys shows: ssh-rsa AAAAB3NzaC...B9DjpXg3fb y@server.local When I try to clone my project by git clone git@heroku.com:xyz.git Cloning into xyz... Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly This is strange. EDIT:

SSH into staging machine from docker instance using Bitbucket Pipelines

拈花ヽ惹草 提交于 2019-12-03 03:12:13
Using the new Bitbucket Pipelines feature, how can I SSH into my staging box from the docker container it spins up? The last step in my pipeline is an .sh file that deploys the necessary code on staging, however because my staging box uses public key authentication and doesn't know about the docker container, the SSH connection is being denied. Anyway of getting around this without using password authentication over SSH (which is causing me issues as well by constantly choosing to authenticate over public key instead.)? Matt Bitbucket pipelines can use a Docker image you've created, that has

Setting up OpenSSH for Windows using public key authentication

你离开我真会死。 提交于 2019-12-03 02:46:45
问题 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 machines. I have replicated the build onto a server, I can get password authentication working fine, but when I use the keys I get the following issue: debug1: Authentications that can continue: publickey,password,keyboard-interactive debug3: start over, passed a different list publickey,password