Questions tagged [private-key]

Private key that occurs in asymmetric cryptography algorithms such as RSA and Diffie-Hellman as the counterpart to a public key. The private key must never be divulged while the public key can be made available to everyone. If your question is not pertaining specifically to the private key (usage/encoding/etc.), you should use more appropriate tags such as [public-key-encryption], [digital-signature], [diffie-hellman] or even [cryptography].

1626 questions
29
votes
1 answer

EC2 Ubuntu Instance - UNPROTECTED PRIVATE KEY FILE

I just created an Ubuntu instance on EC2, but when I try and SSH into the machine, I get: UNPROTECTED PRIVATE KEY FILE! permissions 0644 for 'xxxxx.pem' are too open. It is recommended that your private key files are NOT accessible by others. This…
Emile
  • 3,464
  • 8
  • 46
  • 77
28
votes
6 answers

Code signing with signtool fails due to private key filter

While trying to sign some installer created by the company I am working for I encountered an error, which I have not been able to solve. I am using the same certificate which has been used on another machine (Win7) successfully in the same way for…
Paul Kertscher
  • 9,416
  • 5
  • 32
  • 57
28
votes
6 answers

Transferring a file to an amazon ec2 instance using scp always gives me permission denied (publickey,gssapi-with-mic)

I am trying to transfer a file to an ec2 instance. I followed the Amazon's documentation, this is what my command looked like: scp -i [the key's location] Documents/[the file's location] ec2-user@[public dns]:[home/[destination]] where I replaced…
Amre
  • 1,630
  • 8
  • 29
  • 41
27
votes
1 answer

Converting Strings to encryption keys and vice versa java

I'm currently working on a way to convert keys into strings and vice versa. It works for the public key conversions, and converts a private key into a String. For some reason the same code won't convert a String back into a private key, which I just…
user478087
26
votes
1 answer

UnrecoverableKeyException Failed to obtain information about private key, KeyStoreException: Invalid key blob

In our app we've been having issues with data in the Android Keystore suddenly becoming inaccessible. The specific exception we're seeing is here: java.security.UnrecoverableKeyException: Failed to obtain information about private key at…
26
votes
3 answers

How to convert PKCS#8-formatted PEM private key to the traditional format?

From OpenSSL 1.0 change log: Make PKCS#8 the default write format for private keys, replacing the traditional format. This form is standardised, more secure and doesn't include an implicit MD5 dependency. [Steve…
rkellerm
  • 5,362
  • 8
  • 58
  • 95
26
votes
2 answers

How to change a .p12 file to .key file

I have a .p12 file, I can also transfer it to a .pem file, but how to transfer it as a .key file?
Rico Chan
  • 2,226
  • 2
  • 25
  • 32
25
votes
1 answer

What are the differences between JWT RS256, RS384, and RS512 algorithms?

I'm using JWT RS256 algorithm in my current project, but I'm wondering what are the differences between algorithms RS256, RS384, and RS512. Can someone explain to me what are the key differences in these algorithms?
Jayampathy Wijesena
  • 1,670
  • 1
  • 18
  • 26
25
votes
4 answers

How can I use an existing private key to a new iOS development certificate?

For aesthetic reasons, I would like to use the same private key that I used to create my distribution certificate a while ago, to create a new development certificate (my old one expired). But the "How to create a development certificate:" on the…
Simon Woodside
  • 7,175
  • 5
  • 50
  • 66
25
votes
4 answers

Storing RSA Private Key Android

During the creation of simple messaging android application that is to encrypt/decrypt messages and send them through internet, I decided to use RSA public/private key encryption. Question is how to store private key, so that even if phone is…
user32981
  • 251
  • 1
  • 3
  • 3
24
votes
1 answer

Specifying private key on PuTTY command-line

I know there are simple commands to login to remote machine through VBA i.e. by specifying User@hostname and -pw option to provide the password in Wshell.Run function where Wshell is CreateObject("WScript.Shell"). However I need to use private key…
Sumit
  • 245
  • 1
  • 3
  • 10
23
votes
4 answers

parse.com security

Recently I discovered how useful and easy parse.com is. It really speeds up the development and gives you an off-the-shelf database to store all the data coming from your web/mobile app. But how secure is it? From what I understand, you have to…
softice86
  • 233
  • 2
  • 5
22
votes
2 answers

Encrypted Private Key to RSA Private Key

I have an Encrypted Private Key(say,servenc.key) in below format: -----BEGIN ENCRYPTED PRIVATE…
Vivek Kashyap
  • 243
  • 1
  • 3
  • 10
21
votes
3 answers

Get public key from private in Java

I remember do this long time ago with OpenSSL, but I want to know if it's possible and how, I've never used Cryptography on java.
BRabbit27
  • 6,333
  • 17
  • 90
  • 161
21
votes
3 answers

How to read an RSA key from file

I need to read in an RSA private key from a file to sign a JWT. I have found some examples on how to save a generated RSA key to disk but nothing showing how to build a key struct based on a pre-generated key from a file. The key is generated like…
Ed S.
  • 221
  • 1
  • 2
  • 5