0
votes
0answers
285 views

Decrypting RSA cipher-text from Windows Crypto API With openssl

I have a program that encrypts a small blocks of text with an RSA 2048 public key using the Windows Crypto API CryptEncrypt() function. The public key I'm using is one derived by openssl from a pem ...
0
votes
1answer
2k views

openssl pkcs12 keeps removing the PEM passphrase from keystore's entry?

OpenSSL 1.0.1e 11 Feb 2013 Generating a self-signed certificate: openssl req -x509 -newkey rsa:1024 -keyout key.pem -out cert.pem -days 365 During the process a PEM passphrase is ...
1
vote
1answer
228 views

Signature Verification using OpenSSL

I have been experimenting with OpenSSL and OpenSSH and I have been unable to sign and verify using RSA key pairs. I did the following Generated key pairs: $ ssh-genkey -b 2048 -t rsa ...
2
votes
1answer
4k views

Openssl pkcs8 default format gives RSA PRIVATE KEY

I'm running this command on my pc (Openssl version: 1.0.1) : openssl pkcs8 -inform DER -in file.key -passin pass:12345678a -outform PEM -out key.pem and i got this key.pem: -----BEGIN PRIVATE ...
1
vote
2answers
3k views

How to get the key ID from a .pem openssl file?

I have a .pem private key generated by openssl. How to extract the key ID from it? Edit: the generated rsa keypair is for Amazon cloudfront. When uploaded on the console, a 'Key ID' is displayed. ...