programatik29 / axum-server

High level server designed to be used with axum framework.
MIT License
166 stars 54 forks source link

undefined reference to `SSL_get_peer_certificate` (openssl-0.10.64) #120

Closed WillDera closed 1 month ago

WillDera commented 1 month ago

I'm building a RESTAPI service with axum and its tls_openssl (for ssl support) previously this worked fine, but after updating rust and cargo via rustup update. I suddenly get the error in the title. Below are a few screenshots.

Here it shows the undefined reference error originating from the openssl crate. Screenshot from 2024-05-28 06-40-26

This is what my axum code looks like Screenshot from 2024-05-28 06-41-13 Screenshot from 2024-05-28 06-41-59

I'm using the following version: axum version 0.7.3 axum-server version 0.6.0

On my machine I have openssl version 3.3.0.

I would really appreciate any help, I've been on this for a whole day and can't figure out how to fix it.

WillDera commented 1 month ago

Closing this as I found a fix here