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].
Questions tagged [private-key]
1626 questions
0
votes
0 answers
c# RSA PrivateKey Why?
I use privKeyOk it works fine, and privKeyOk is generate by openssl
openssl genrsa -out rsa_1024_priv.pem 1024
but privKey is failed, test in vs2005 and vs2010. Here is the code in question
test() and test2() are same error, why?
GetIntegerSize…

ruijiexie
- 97
- 1
- 7
0
votes
1 answer
Using sftp private and public key for authentication
I'm trying to set authentication for sftp server using private and public key pair.
I have set an sftp server with Bitvise SSH Server on a local machine. I generated private and public keys with SSH Server. I have set the private key on the host key…

pyram
- 925
- 9
- 24
- 43
0
votes
1 answer
Generate private RSA private key and set pass-phrase programmatically
I am trying to generate an RSA private key and set a passphrase for it programmatically.
Using the following code I can generate an unencrypted key without a passphrase no problem:
if (!PEM_write_PrivateKey(priv_f, key_p, NULL, NULL, 0, 0, NULL)) {
…

TomSelleck
- 6,706
- 22
- 82
- 151
0
votes
1 answer
OSX, code signing private keys
Where can I find the private key used to generate the mac code signing certificate?
I have looked within keychain but cannot find it.

Matt Seymour
- 8,880
- 7
- 60
- 101
0
votes
1 answer
Is there a way to check with calls into my web-application API came from my distributed client?
Is there a way to check with calls into my web-application API came from my distributed client???
That is if I have both a thick client (windows forms client say) and the server side web application that exposes a HTTPS interface (assume user puts…

Greg
- 34,042
- 79
- 253
- 454
0
votes
1 answer
Encoding using SHA256 with RSA
I'm attempting to authorize with the Google Data API as a service in a language for which there isn't any client library. The crux is in how to generate the signature. To do this I have to encode a string using "SHA256 with RSA".
I have it from here…

C. E.
- 10,297
- 10
- 53
- 77
0
votes
2 answers
RSA Private and Public Keys have the same cipher text when encrypted with AES 256?
Is it normal that the keypair of RSA (private and public) have the same ciphertext when I encrypt them with AES 256?
In fact I'm using PHP:
"sha512",
"private_key_bits" => 4096,
…

Lithilion
- 1,097
- 2
- 11
- 26
0
votes
1 answer
Error when decrypt with Java
I'm having trouble when Iḿ trying to decrypt a document, I'm using Public/Private pair key to do this. I'm using a Token to do this.
This is the error that I'm getting:
java.security.ProviderException: java.security.KeyException: An internal error…

lion316
- 3
- 1
- 1
- 4
0
votes
1 answer
private key .pem loaded into aws elastic beanstalk (ebs)
I am configuring a Java application using eclipse which is then deployed onto elastic beanstalk using Tomcat. This application uses Jsch, which is a technology that enables the application to connect to another server (or instance) using a .pem…
0
votes
1 answer
Java Keystore Private key import
I am working on a Java project. I need to generate a RSA keypair then use them to communicate with others.
I see that KeyStore could store KeyStore.PrivateKeyEntry but it need a Certificate[] chain. I have created certificate using my function but…

Ziki Khan
- 44
- 6
0
votes
4 answers
How to hardcode private key which can be used to encrypt once and decrypt many times?
In my application I want to use Private key which will encrypt password once and decrypt as many times the tool will be run.
Application will run like:
User will encrypt the password using the tool.
Then user will paste that password in properties…

DMS
- 808
- 2
- 20
- 34
0
votes
2 answers
X.509 Self Signed Certificates
I'm trying to understand more about X.509 Digital Certificates. There seems to be lots of contradiction around. I am using Bouncy Castle to generate a key pair, using
public static void SaveToFile(X509Certificate newCert, AsymmetricCipherKeyPair…

JDubya13
- 95
- 1
- 1
- 5
0
votes
3 answers
Java equivalent of ssh bash command
I would like to execute
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=dev/null -i key.txt user@host 'cd some/directory; ./check status'
on Java and read the response it gives me. Can someone please tell me how I would go about doing…

Quillion
- 6,346
- 11
- 60
- 97
0
votes
1 answer
BouncyCastleProvider do not get PrivateKey and certificate chain from PKCS#12 file
I have file cert.pfx exported on Windows. This file contains my certificate. On Ubuntu i can open it with password and I see the certificate. But when I loaded this file:
BouncyCastleProvider provider = new…

Krzysztof Szewczyk
- 1,752
- 1
- 21
- 25
0
votes
3 answers
SSL Certificate - What is the use of the private key in a root certificate?
I am new to Cryptogrphy, HTTPS and SSL !!!
If i am not wrong , the private key of an End Entity certificate (certificate issued by trusted CA like Verisign) is used to decrypt the information sent by the client !
But does a root certificate also…

user2048204
- 729
- 4
- 13
- 27