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
18
votes
2 answers

Configure cURL to use default system cert store on Windows

I have a command line application that is using the libcurl-4 dll's, and currently I can get everything to work by placing my CA certs in my working directory and passing their names to the CUTLOPT_CAINFO and CURLOPT_SSLCERT with ./ prefix to their…
Cody Pritchard
  • 635
  • 1
  • 9
  • 28
18
votes
2 answers

How to convert trust certificate from .jks to .pem?

I have a Java SSL server to which I want my Java SSL client and C++ SSL client to be able to connect. The Java client connects without issues. Now I want to have my C++ SSL client to be able to connect. So for this purpose ,I imagined, that I want…
driftwood
  • 2,051
  • 4
  • 21
  • 28
18
votes
6 answers

Reading PEM RSA Public Key Only using Bouncy Castle

I am trying to use C# to read in a .pem file that contains only a RSA public key. I do not have access to the private key information, nor does my application require it. The file myprivatekey.pem file begins with -----BEGIN PUBLIC KEY----- and…
cytinus
  • 5,467
  • 8
  • 36
  • 47
17
votes
2 answers

How to use SFTP connection with key file using C# and .NET

I have a C# .NET project, where am trying to open an SFTP connection to a server and put a file to the server. I have SFTP hostname, username and key file (.pem file). I do not have a password here. Please help me with something to use SFTP in C#…
Sayan Sen
  • 1,654
  • 3
  • 16
  • 26
17
votes
2 answers

NodeJS Generate Valid PEM keys for Signing and Verifying messages

Context From the NodeJS documentation on TLS/SSL for Node v10.9.0 (2018-AUG) https://nodejs.org/api/tls.html#tls_tls_ssl_concepts openssl genrsa -out ryans-key.pem 2048 Will produce: -----BEGIN RSA PRIVATE KEY----- base64 encoded magic…
Josh Peak
  • 5,898
  • 4
  • 40
  • 52
17
votes
4 answers

Gradle build configured signatory

I'm looking at the webpush-java code. I run into a problem attempting to build the project using gradle. (I'm a gradle newbie). :signArchives FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task…
Daniel Freeman
  • 383
  • 4
  • 11
17
votes
3 answers

convert .pem to .ppk on macos

There are lots of SO posts on this topic but most of them are for Windows and use the GUI. All others posts seem to use the CLI. Is there a GUI version of puttygen on MacOS/Linux and if so instructions on how to install/use? The CLI seems to give…
codingknob
  • 11,108
  • 25
  • 89
  • 126
16
votes
2 answers

Convert OpenSSH ED25519 Private Key Format to PEM format

I have generated a an ED25519 SSH key pair using ssh-keygen -t ed25519 The output of the id_ed25519 file is in OpenSSH format: -----BEGIN OPENSSH PRIVATE KEY----- ... -----END OPENSSH PRIVATE KEY----- I would like to convert it to a PEM file…
Ferit
  • 558
  • 1
  • 5
  • 19
16
votes
2 answers

How to build a SSLSocketFactory from PEM certificate and key without converting to keystore?

I'm given a self-signed client certificate kit that is to be used to access a server via HTTPS. The kit consists of the following PEM files: client.crt (client certificate) client.key (client private key) ca.crt (CA certificate) One way to solve…
Roman Puchkovskiy
  • 11,415
  • 5
  • 36
  • 72
16
votes
1 answer

Formatting RSA keys for OpenSSL in Java

Background RSA key generation with OpenSSL on Linux using the command, openssl genrsa -out mykey.pem 1024 created the following: "-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQChs9Fepy5FgeL0gNJ8GHcKRHsYnM2Kkw19zwydDQNyh2hrHWV2 …
MiKu
  • 385
  • 1
  • 5
  • 16
16
votes
2 answers

Reading and writing rsa keys to a pem file in C

I am writing a C program to generate keys for RSA and write them to a file and then read from them. The homework requires me to generate the files in a openssl format. So, I chose PEM. Now, I have the following function for creating the file rsa =…
Himanshu Jindal
  • 637
  • 1
  • 7
  • 13
15
votes
1 answer

Node.js crypto fails to sign pem key string from file with error:25066067:DSO support routines:dlfcn_load:could not load the shared library

I have two node projects running side by side in my Git directory. Same version of node 14.5, same pem key in root, same everything. Yet, one node process is able to sign my base64 pem key and the other is not. I can remove the base64 setting and…
Dennis Bauszus
  • 1,624
  • 2
  • 19
  • 44
15
votes
1 answer

Can I convert p8 APNs Auth Key to pem file?

I using *.p8 APNs Auth Keys instead of *.p12 certificates for push notification of my apps. And, push notifications were working well. However, a third party SDK which I needed and related to push notification demands only *.pem files from me, not…
Byoth
  • 1,905
  • 6
  • 16
  • 28
15
votes
3 answers

How to use ssh-add to remove identities (pem files) from the agent

I can add pem files to my SSH agent very easily using ssh-add, like so: $ ssh-add /home/jsmith/keys/mytest.pem But I can't seem to remove them: $ ssh-add -d /home/jsmith/keys/mytest.pem Bad key file /home/jsmith/keys/mytest.pem: No such file or…
Dasmowenator
  • 5,505
  • 5
  • 36
  • 50
15
votes
3 answers

Transform SSL .crt to kubernetes inline format

I have created self-signed user certificates for my kubernetes cluster and now want to distribute respective kubeconfig files to the users. How to I transform the .crt and .key files I used for the process to kubeconfig inline format? Here is a…
ChrJantz
  • 919
  • 1
  • 11
  • 23