Questions tagged [openssl]

OpenSSL is an open source software toolkit that implements the SSL/TLS protocol, as well as a general cryptographic library.

OpenSSL is an open source software toolkit that implements the SSL/TLS protocol, as well as a general cryptographic library.

OpenSSL is maintained by the OpenSSL Project, which hosts several project mailing lists.

16384 questions
257
votes
2 answers

Differences between "BEGIN RSA PRIVATE KEY" and "BEGIN PRIVATE KEY"

Hi I was writing a program that imports private keys from a .pem file and create a private key object to use it later.. the problem I have faced is that some pem files header begin with -----BEGIN PRIVATE KEY----- while others begin…
monim
  • 3,427
  • 3
  • 23
  • 36
249
votes
10 answers

Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError)

I was doing attempting to do some updates to openssl using homebrew and I somehow managed to break everything. I can't do anything now, this is what I get when I try to do bundle install: $ bundle…
Lenek
  • 2,517
  • 2
  • 12
  • 9
242
votes
18 answers

CMake not able to find OpenSSL library

I am trying to install a software that uses cmake to install itself. When I run cmake .. on the command line, it gives me following error in the CMakeLists.txt on the line that says find_package(OpenSSL REQUIRED): -- Could NOT find Git (missing: …
Allan
  • 2,971
  • 4
  • 24
  • 28
241
votes
24 answers

certificate verify failed: unable to get local issuer certificate

I am trying to get data from the web using python. I imported urllib.request package for it but while executing, I get error: certificate verify failed: unable to get local issuer certificate (_ssl.c:1045) I am using Python 3.7 on Mac OS High…
biswajit
  • 2,707
  • 4
  • 17
  • 16
236
votes
15 answers

"ERROR:root:code for hash md5 was not found" when using any hg mercurial commands

When trying to use any hg Mercurial commands on the console, I keep getting this error. I installed Python using Homebrew and I am running Mac OS Catalina v. 10.15.1. Any reference would be appreciated. Here is the error I'm getting: hg commit…
poca
  • 3,630
  • 3
  • 13
  • 19
228
votes
7 answers

Extract public/private key from PKCS12 file for later use in SSH-PK-Authentication

I want to extract the public and private key from my PKCS#12 file for later use in SSH-Public-Key-Authentication. Right now, I'm generating keys via ssh-keygen which I put into .ssh/authorized_key, respective somewhere on the client-side. In…
lazydaemon
  • 2,429
  • 2
  • 17
  • 12
215
votes
9 answers

Verify a certificate chain using openssl verify

I'm building a own certificate chain with following componenents: Root Certificate - Intermediate Certificate - User Certificate Root Cert is a self signed certificate, Intermediate Certificate is signed by Root and User by Intermediate. Now I…
Indra
  • 2,153
  • 2
  • 12
  • 4
210
votes
12 answers

HTTPS and SSL3_GET_SERVER_CERTIFICATE:certificate verify failed, CA is OK

I am using XAMPP for development. Recently I upgraded my installation of xampp from an old version to 1.7.3. Now when I curl HTTPS enabled sites I get the following exception Fatal error: Uncaught exception 'RequestCore_Exception' with message …
Josnidhin
  • 12,469
  • 9
  • 42
  • 61
209
votes
15 answers

Unable to load config info from /usr/local/ssl/openssl.cnf on Windows

While using OpenSSL on Windows: openssl genrsa -out privatekey.pem 1024 --> Created successfully openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 365 ----> Showing error message as unable to load config info from…
karthik
  • 2,333
  • 2
  • 13
  • 11
197
votes
12 answers

Convert pem key to ssh-rsa format

I have a certificate in der format, from it with this command I generate a public key: openssl x509 -inform der -in ejbcacert.cer -noout -pubkey > pub1key.pub Which results in this: -----BEGIN PUBLIC…
Adrya
  • 3,427
  • 8
  • 31
  • 29
194
votes
5 answers

Converting pfx to pem using openssl

How to generate a .pem CA certificate and client certificate from a PFX file using OpenSSL.
new bie
  • 2,745
  • 6
  • 24
  • 26
192
votes
17 answers

create a trusted self-signed SSL cert for localhost (for use with Express/Node)

Trying to follow various instructions on creating a self-signed cert for use with localhost, Most of the instructions seem to be for IIS, but I'm trying to use Nodejs/Express. None of them work properly because while the cert gets installed, it…
JasonS
  • 7,443
  • 5
  • 41
  • 61
182
votes
14 answers

How do you test a public/private DSA keypair?

Is there an easy way to verify that a given private key matches a given public key? I have a few *.puband a few *.key files, and I need to check which go with which. Again, these are pub/key files, DSA. I would really prefer a one-liner of some…
Loki
  • 6,205
  • 4
  • 24
  • 36
174
votes
19 answers

SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

I'm not able to setup SSL. I've Googled and I found a few solutions but none of them worked for me. I need some help please... Here's the error I get when I attempt to restart nginx: root@s17925268:~# service nginx restart Restarting nginx: nginx:…
Galou
  • 1,739
  • 2
  • 12
  • 7
172
votes
15 answers

Homebrew refusing to link OpenSSL

I'm on: OSX 10.11.6, Homebrew version 0.9.9m OpenSSL 0.9.8zg 14 July 2015 I'm trying to play with with dotnetcore and by following their instructions, I've upgraded/installed the latest version of openssl: > brew install openssl ==> Downloading…
daviddeath
  • 2,483
  • 2
  • 17
  • 16