-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic EST certificate retrieval does not work on Ubuntu 22.04 copy to reopen issue #7152
Comments
Hey @omedirk, if an issue was resolved in openssl and you compiled the version with the fix, double check that the process is actually using (dynamically loading) the openssl libraries you compiled and not the distribution libraries. |
Hi Vadim,
Could you point us to a how-to of any sort?
We took some steps enabling the library we found in various tutorials. When running the version commands the active openssl appears to be the version we compiled.
Maybe there is one last step we are missing.
Rgds
Verzonden vanaf Outlook voor Android<https://aka.ms/AAb9ysg>
…________________________________
From: Vadim Kovalyov ***@***.***>
Sent: Thursday, November 16, 2023 1:06:33 AM
To: Azure/iotedge ***@***.***>
Cc: Rene Oudeman ***@***.***>; Mention ***@***.***>
Subject: Re: [Azure/iotedge] Automatic EST certificate retrieval does not work on Ubuntu 22.04 copy to reopen issue (Issue #7152)
Hey @omedirk<https://github.com/omedirk>, if an issue was resolved in openssl and you compiled the version with the fix, double check that the process is actually using (dynamically loading) the openssl libraries you compiled and not the distribution libraries.
—
Reply to this email directly, view it on GitHub<#7152 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AID2MWN2UO2RVM23Z2IGUGTYEVKITAVCNFSM6AAAAAA7NCOE7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJTGQ4TGOBXG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
we have tried many versions of the same installation/compile technique. they all compile, they all link to the new openSSL but the provisioning will still not pull in the needed certificates. Will try to post a screenshot of it later. Questions:
optional solvers: error still the same as in original post |
Hey @omedirk, sorry to hear you still having issues. Let me answer some of your questions. We don't require any specific compile options for openssl, because, we don't required to compile any dependencies. I know it is possible that our dependencies can have problems, and we have no control over it and you would need to follow any guidance on that dependency to resolve the issue. About openssl specifically, Iotedge is dynamically linked to the platform-specific openssl shared libs. The I hope this will help you. If you still have issues, please provide detailed steps on what you have done, how and what version of iotedge you installed, what commands did you run for compiling openssl, what have you tried to make it load compiled version of shared libs, etc. Thanks! UPD: this link could be useful as well - https://unix.stackexchange.com/questions/22926/where-do-executables-look-for-shared-objects-at-runtime |
Hi Vadim, we have now most likely pointed to the azure identity service: it simply does not support ubuntu 22 and openssl 3 out of the box. this matches the behaviour that it works when co-installing openssl111. we will now investigate this further. |
Hey @omedirk, are you trying to compile iotedge yourself? Aziot-edge supports Ubuntu 22.04 and openssl3 since version 1.4.9 - https://github.com/Azure/azure-iotedge/releases/tag/1.4.9. If you download the package from microsoft repo for Ubuntu 22.04 https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/ it is already compiled for openssl3. |
Ok. then we probably should leave this issue until the fixes are propagated in the openssl3 packages for ubuntu..
it feels a bit passive to wait for ubuntu..
Verzonden vanaf Outlook voor Android<https://aka.ms/AAb9ysg>
…________________________________
From: Vadim Kovalyov ***@***.***>
Sent: Wednesday, November 22, 2023 9:43:43 PM
To: Azure/iotedge ***@***.***>
Cc: Rene Oudeman ***@***.***>; Mention ***@***.***>
Subject: Re: [Azure/iotedge] Automatic EST certificate retrieval does not work on Ubuntu 22.04 copy to reopen issue (Issue #7152)
Hey @omedirk<https://github.com/omedirk>, are you trying to compile iotedge yourself? Aziot-edge supports Ubuntu 22.04 and openssl3 since version 1.4.9 - https://github.com/Azure/azure-iotedge/releases/tag/1.4.9. If you download the package from microsoft repo for Ubuntu 22.04 https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/ it is already compiled for openssl3.
—
Reply to this email directly, view it on GitHub<#7152 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AID2MWLPR4EMSU6YFWRKDXTYFZPX7AVCNFSM6AAAAAA7NCOE7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGQ4DAMJTGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Coming back to the question on how we installed openssl3.0.9
when running openssl version -a $ ldd /usr/libexec/aziot-identity-service/aziotd
this is where i end my work .. apparently this is not enough to get azure identity working and i still have the same error:
|
It seems to me that you've set LD_LIBRARY_PATH for your local user but not the aziot-* services. Try setting it for all aziot-* services with systemd config. |
Ok thanks for that catch.
Could you please provide additional info on this? And/or what to search for?
|
Hey @omedirk, I think you can easily find that online - https://serverfault.com/questions/413397/how-to-set-environment-variable-in-systemd-service But specifically, for aziot-* services we already create override file for AZIOT_LOG env var, so you can edit |
@omedirk how's it going? Were you able to make progress? |
@omedirk checking again - how's it going? |
Hi John,
Thanks for asking.
It's not solved yet. We abandoned this project because of higher priorities. but with the end of life of 20.04 this is becomming more and more urgent.
rgds
rene
Verzonden vanaf Outlook voor Android<https://aka.ms/AAb9ysg>
…________________________________
Van: John Lian ***@***.***>
Verstuurd: donderdag, januari 11, 2024 8:26:48 p.m.
Aan: Azure/iotedge ***@***.***>
CC: Rene Oudeman ***@***.***>; Mention ***@***.***>
Onderwerp: Re: [Azure/iotedge] Automatic EST certificate retrieval does not work on Ubuntu 22.04 copy to reopen issue (Issue #7152)
@omedirk<https://github.com/omedirk> checking again - how's it going?
—
Reply to this email directly, view it on GitHub<#7152 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AID2MWKQTRARJOFSZSF34OLYOA4HBAVCNFSM6AAAAAA7NCOE7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBXHAYTSMJXHE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi @omedirk - we have asked our Canonical contacts to backport this OpenSSL fix and include it in Ubuntu 22.04LTS. You can now track the status of this issue via this bug. If you don't have any questions, I will proceed and close this issue and you can always re-open if needed. Thanks! |
we have actually managed to get ubuntu 22 provisioned with our pki.
since filing the bug so many things have changed that it's hard to be sure what was the actual fix in the end.
we found that iotedge is requesting a multitude of certificates in names we were also using. This messed up our certificate handling.
Rgds
Verzonden vanaf Outlook voor Android<https://aka.ms/AAb9ysg>
…________________________________
From: bishal41 ***@***.***>
Sent: Tuesday, March 26, 2024 10:39:00 PM
To: Azure/iotedge ***@***.***>
Cc: Rene Oudeman ***@***.***>; Mention ***@***.***>
Subject: Re: [Azure/iotedge] Automatic EST certificate retrieval does not work on Ubuntu 22.04 copy to reopen issue (Issue #7152)
Hi @omedirk<https://github.com/omedirk> - we have asked our Canonical contacts to backport [this OpenSSL fix (openssl/openssl#20161<https://github.com/openssl/openssl/issues/20161>) and include it in Ubuntu 22.04LTS. You can now track the status of this issue via this bug<https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/2059101>.
If you don't have any questions, I will proceed and close this issue and you can always re-open if needed. Thanks!
—
Reply to this email directly, view it on GitHub<#7152 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AID2MWKW5E4ZEHVR3IAKSETY2HTHJAVCNFSM6AAAAAA7NCOE7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRGUYTSMBWGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Please reopen the original issue.
The root cause has been solved in openssl, but the solution is not propagated in ubuntu 22.04 libraries.
I have so far compiled 3.0.12 and 3.1.14 but they still don't solve this.
Please supply a walkthrough or any other workaround to get EST working with iotedge on ubuntu 22.04
original issue
Thanks for your help
The text was updated successfully, but these errors were encountered: