Certificate parse on Renesas MBED TLS version 2.25.0 - mbedtls

I have project with Renesas RA4M2 processor that supports crypto hardware acceleration. Program needs to proceed some cryptographic functionality. For this reason I use MBED TLS library provided in sample files from Renesas. Sample project uses MBED TLS version 2.25.0 while current version is 3.1.0.
I need to proceed some manipulations with certificate file parsing and I found that MBED TLS version 2.25.0 from Renesas site is different than in official MBET TLS git repository. Some files are just missing while other ones are changed.
For example MBED TLS 2.25.0 from Renesas does not have mbedtls_x509_crt_parse_file() function.
How to parse certificate files in MBED TLS 2.25.0 from Renesas?

Related

How to check which version of TLS my AFNetworking Library is using?

I am using 'pod 'AFNetworking', '~> 3.1.0' in one of my project which using Opentok SDK. I have received a mail which says Opentok will be disabling support for TLS 1.1 at a later date (July 31st, 2018). Can anyone help to check my TLS version using?
App Transport Security requires TLSv1.2, so unless you are adding exceptions for individual hosts, AFNetworking must also be using TLSv1.2 for you.
However, the Tokbox SDK does not use AFNetworking, and has supported TLSv1.2 from at least the v2.6 SDK.

Installing mbed TLS with libmbedtls-dev

I am currently working with mbed TLS and I discovered something odd:
I want to extract the CRT parameters of a private RSA key with the mbedtls_rsa_export_crt() function [1]. Unfortunately the function is missing. The problem seems to be that I have installed the libraries over the package manager. Concrete I have installed the libmbedtls-dev package [2].
Is the code in [2] deprecated or why are some functions missing?
[1] https://tls.mbed.org/api/rsa_8h.html
[2] https://packages.debian.org/de/sid/libmbedtls-dev
Thank you for your support
MK14
I solved it. The problem was that I have installed Ubuntu 16.04 on my mashine and the Xenial Repo contains an old version of the mbedtls package. Installing the mbedtls package from the Bionic repo solved my issue.
Regards
ckmk14

Freeradius running debug mode libssl version mismatch

I'm trying to build and install Freeradius version 3.0.8 using these instructions. But after starting Freeradius in debug mode using command radiusd -X shows following error.
libssl version mismatch. built: 1000207f linked: 1000114f
I tried removing libssl-dev and reinstall, But no luck.
Appreciate any help to resolve this version mismatch error. My os is Ubuntu 16.4
If you're building/installing on the same server you have multiple versions of OpenSSL installed. When you built the server it found version 1.0.2, when the server runs however, it's linked against 1.0.1. The server refuses to start because 1.0.2 and 1.0.1 are ABI incompatible and allowing the server to start may cause subtle errors in any code that called OpenSSL.
As a workaround you can use the LD_PRELOAD environmental variable to specify the path to OpenSSL 1.0.2.
If you're building/installing on two different systems you must ensure both systems have the same version of OpenSSL.

Salesforce disabling TLS 1.0

I am working on a salesforce application which is hitting an API built using ruby on rails. Initially this application was working fine until I faced errors while deploying the application using Jenkins. I checked the logs and it mentions "Stronger security is required, To access this website, update your web browser or upgrade your operating system to support TLS 1.1 or TLS 1.2. Salesforce disabling TLS 1.0".
What can i alter within my ROR application to resolve this error. I have already tried adding openssl gem to my gemfile but the issue still persists. Here is the error log:
<table width="100%" height="100%" border="0">
<tr><td width="100%" height="100%"><div class="content"><h1>Stronger security is required</h1><div class="simple"><p>To access this website, update your web browser or upgrade your operating system to support TLS 1.1 or TLS 1.2.</p><p>For more information, see Salesforce disabling TLS 1.0.
</p></div></div></td></tr>
</table
Please see if this works for you.
Find the openssl version. You can use the following command "openssl
version" in command line. Ensure that the version is 1.0.1 or higher.
TLS 1.1 / TLS 1.2 support starts from
OpenSSL 1.0.1
(https://github.com/ruby/ruby/commit/060184c347822b11dff3db6bef915c04a564c4e4)
Set ssl_version on your SSLContext:
ctx = OpenSSL::SSL::SSLContext.new
ctx.ssl_version = :TLSv1_2
Which version of ruby and openssl did you try? According Salesforce documentation:
Ruby
Compatible with the most recent version when linked to OpenSSL 1.0.1 or higher.
Ruby 2.0.0
TLS 1.2 is enabled by default when used with OpenSSL 1.0.1
or higher. Using the :TLSv1_2 (preferred) or :TLSv1_1 symbols with an
SSLContext's ssl_version helps ensure that TLS 1.0 or earlier is
disabled.
Ruby 1.9.3 and below
The :TLSv1_2 symbol does not exist in 1.9.3 and below, but it is
possible to patch Ruby to add that symbol and compile Ruby with
OpenSSL 1.0.1 or higher.

Error installing passenger on OSX: Curl development headers with SSL support not found

I am getting "Curl development headers with SSL support" error when trying to install passenger nginx module on OSX machine.
I downloaded curl-7.19.7 from Apple and it installed fine.
What's going on??
The default Apple installation includes the binaries, but not the development headers. When you build the package from source (even from Apple's open source packages) it includes the headers, so you can build the native extensions. Therefore, when you manually install Apple's nginx packages, you get everything you need to build the extension. Kinda like what happens when you try to install the mysql gem on OS X Server if you haven't installed Apple's MySQL source packages. b0rked until you build from Apple's (modified) source.

Resources