Questions tagged [openssl]

Open source implementation of the Secure Socket Layer (SSL) and Transport Layer Security (TLS) protocols

392 questions
153
votes
6 answers

How to patch the Heartbleed bug (CVE-2014-0160) in OpenSSL?

As of today, a bug in OpenSSL has been found affecting versions 1.0.1 through 1.0.1f (inclusive) and 1.0.2-beta. Since Ubuntu 12.04, we are all vulnerable to this bug. In order to patch this vulnerability, affected users should update to OpenSSL…
Lucio
  • 18,648
  • 31
  • 107
  • 190
95
votes
7 answers

How do I quickly encrypt a file with AES?

I want to encrypt a file using AES-256. How can I do that quickly and easily, and how can I - or someone else -decrypt it again?
Stefano Palazzo
  • 85,787
  • 45
  • 210
  • 227
66
votes
5 answers

Ubuntu 20.04 - how to set lower SSL security level?

I'd like to ask if there's a way to lower SSL security level to 1 on Ubuntu 20.04, since I'm receiving: 141A318A:SSL routines:tls_process_ske_dhe:dh key too small when trying to curl the website. Curl works if I add --ciphers 'DEFAULT:!DH'…
Łukasz Sypniewski
  • 795
  • 1
  • 7
  • 9
48
votes
2 answers

How should I change encryption according to *** WARNING : deprecated key derivation used

When I encrypt or decrypt a file I get: *** WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. I do not understand what this means, and how I should change my procedure. Thus far, I encrypted with: openssl des3…
Tommy Pollák
  • 1,019
  • 2
  • 9
  • 16
34
votes
1 answer

How to upgrade OpenSSL 1.1.0 to 1.1.1 in Ubuntu 18.04?

I have been running a production server with Ubuntu 18 installed. Recently, I found that my web application was not allowed on some of the firewalls installed at the customer location. I found that my server is communicating at TLSv1.0, TLSv1.1,…
dollar
  • 457
  • 1
  • 4
  • 6
31
votes
3 answers

PHP OpenSSL extension has a package?

I know that OpenSSL extension is in PHP source, but I can't enable it when I perform apt-get install php5. There is not even a apt-get install php5-openssl. How I must proceed?
Tasso Evangelista
  • 538
  • 1
  • 6
  • 10
31
votes
1 answer

How to install openssl 3.0.7 on Ubuntu 22.04?

There's a highest severity security hole in openssl v3.0.x where x<7. The patched version (3.0.7) has officially dropped on November 1, 2022. How to install/update openssl 3.0.7 on an Ubuntu 22.04 system? Update: The vulnerability has been…
Lexible
  • 1,286
  • 3
  • 12
  • 31
31
votes
13 answers

module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

I was using python 3.6 on my ubuntu machine and faced this error when doing some testing: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be…
snow
  • 413
  • 1
  • 4
  • 6
29
votes
1 answer

What is "openssl binaries" and "openssl development package"?

Build it using general C development environment with bash, gcc (3 or 4 series), make, etc on a linux machine. Building pre-requirements are: ** 1. openssl binaries; 2. openssl development package with include files (on debian package…
PHANI
  • 521
  • 3
  • 7
  • 8
26
votes
7 answers

Enabling SSL in MySQL

I'm running Ubuntu Server 12.04, and I want to enable SSL connections to MySQL. I've generated the following keys/certs files with OpenSSL: ca-cert.pem server-cert.pem server-key.pem I stored these at /etc/mysql, then added added the following…
visitor93746
  • 361
  • 1
  • 3
  • 5
23
votes
3 answers

Where are PEM files stored for validating SSL certificates?

I'm writing a SOAP client application on Ubuntu using OpenSSL and C++. I am having trouble getting my code to validate the server certificate even though I know has a valid certificate. Just to make sure I would like to check that it's the case and…
mathematician1975
  • 2,211
  • 8
  • 31
  • 47
21
votes
3 answers

How to enable TLS 1.2 in Nginx?

How do I enable TLS 1.1 and 1.2 for SSL connections in my Ubuntu 12.04 server? I am using the following version of nginx and openssl library. $ ./nginx -v nginx version: nginx/1.2.3 $ openssl version -a OpenSSL 1.0.1 14 Mar 2012 built on: Tue Jun …
codefx
  • 393
  • 2
  • 3
  • 9
21
votes
4 answers

How to install OpenSSL 1.1.1 and libSSL package?

I want to use OpenSSL1.1.1 version for my code development. Currently I am working with Openssl 1.1.0g on Ubuntu 18.04 machine. If I download the package with the command sudo apt install libssl-dev, then I get OpenSSL 1.1.0g version, If I download…
Karma Yogi
  • 385
  • 1
  • 4
  • 12
20
votes
3 answers

Why unattended-upgrades does not fix heartbleed bug?

I've followed the instruction to install unattended-upgrades to install automatic security updates on my server (ubuntu server 13.10). https://help.ubuntu.com/community/AutomaticSecurityUpdates Can you help me to understand why this morning I still…
Guillaume Vincent
  • 552
  • 1
  • 6
  • 11
20
votes
3 answers

Upgrade OpenSSL on Ubuntu 12.04

I wanted to upgrade OpenSSL to 1.0.1 on an Ubuntu 12.04 system. I have noticed that an apt-get upgrade openssl does not end up upgrading OpenSSL. Is the newer OpenSSL supported on Ubuntu? I have also tried compiling from source. The compilation…
KJ Saxena
  • 253
  • 1
  • 2
  • 7
1
2 3
26 27