Questions tagged [pem]

PEM, (from Privacy Enhanced Mail standard) is a base64 container format for encoding keys and certificates.

PEM (Privacy Enhanced Mail standard) is a base64 container format that encodes keys and certificates surrounded by header lines, and is used extensively by . It is defined in RFC standards 1421-1424

1003 questions
-1
votes
1 answer

How do I decode a PEM-encoded PKIX public key?

The example given in Go's official documentation for x509.ParsePKIXPublicKey encounters a runtime error because the Block that pem.Decode() returns is nil. (Playground example) However, the example in the official documentation for pem.Decode()…
Aor
  • 185
  • 11
-1
votes
1 answer

Connecting to an AWS instance on windows from CLI

I am trying to execute the following command on cmdline (windows) ssh -i "publicec2instance.pem" @ec2-user<>compute.amazonaws.com but it errors out saying Failed to add the hosts to the list of known hosts (/home/<>/.ssh/known_hosts) I tried to…
-1
votes
1 answer

SSH connects, but scp is having an issue - AWS instance

I am able to connect to ssh using the command ssh -i pem_filename.pem xx.xx.x.xx -l ec2-user However, if i try to copy the file from the server to local machine using scp -i pem_filename.pem…
rafavinu
  • 305
  • 4
  • 20
-1
votes
1 answer

generate X.509 or PEM and privat key (RSA, PEM) from two certificates from GeoTrust

I've got following lines from GeoTrust: Web Server CERTIFICATE ----------------- -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- INTERMEDIATE CA: --------------------------------------- -----BEGIN CERTIFICATE----- ... -----END…
-1
votes
1 answer

"ssh_exchange_identification: read: Connection reset by peer", while login to aws

When I am trying to login to my aws instance using ubuntu terminal, it says "ssh_exchange_identification: read: Connection reset by peer" after few seconds and the website which is hosted on the server is also not opening. I have never faced this…
sajalsuraj
  • 922
  • 15
  • 29
-1
votes
1 answer

Create .pem-file results in "file or folder not found."

After creating a .key- and a .csr-file by following the steps of this tutorial (Step: Prepare SSL Certificate) it's not possible to do sudo sed -i -e '$a\' appbead.com.pem. I get the error "file or folder not found". So I created the file and tried…
John Doof
  • 1
  • 1
-1
votes
2 answers

Create P12 or PFK file from CER, PEM, P7B, PKCS8

I would like to create a .p12 or .pfk file. I have the files as below : xx.cer xx.p7b xx.pem xx.pkcs8 I've tried a lot of openssl commands but I could only create a .p12 file of zero bytes. Example of openssl command that I executed : openssl…
tulyy
  • 1
  • 1
  • 1
-2
votes
0 answers

How to extract Bitcoin Private Key from PKCS1 private key file?

I have a BTC wallet backup copy in PKCS1 private key format. Sadly, my friend created the wallet for me and I didn't take part in creating it. And I don't know on what platform was it created.To sum up, I have an address of my BTC wallet and this…
Alex
  • 1
  • 1
-2
votes
1 answer

Loading an Unencrypted PEM Public Key with OpenSSL libcrypt

I'm trying to load a SECP256R1 Public Key that I've created with OpenSSL into my C program. According to OpenSSL documentation the code below should work: #include #include #include int main() { EC_KEY…
Arya Pourtabatabaie
  • 705
  • 2
  • 7
  • 22
-2
votes
1 answer

How to encrypt data with a pfx file

I have pfx file and I need to encrypt a data by using it and Java. First I converted it to a .pem file. But still I do not know what to do with both now.
Tim Tuckle
  • 1,372
  • 7
  • 21
  • 31
-2
votes
1 answer

How to convert .crt file into .pem format

I have two files.One is 5474dd9b93888948.crt and another is gd_bundle-g2-g1.crt. I have to convert this two files into 'PEM encoded X.509 certificate' and 'Unencrypted PEM encoded RSA private key'. can any one tell me openssl commands for it ?
RBP
  • 481
  • 1
  • 9
  • 29
-3
votes
1 answer

Is it safe storing an encrypted PEM block?

I have some experience using Go, but now I don't really understand the complexity in security of what I am doing, so I need to ask. I am creating an RSA private key, converting to PEM and then encryping it with a passphrase. So, how secure is to…
-3
votes
1 answer

AWS_EC2 ssh Permission denied (publickey)

Ugh, so I've read every S.O. solution and nothing has worked. Long story short, apple reformatted my computer and I lost my Private key to ssh into my aws ec2 linux instance. I generated a new key, changed the permissions to 400 and tried to ssh…
1 2 3
66
67