[systemd-devel] Using systemd-creds for sharing secrets between services

Orit Kashany okashany at nvidia.com
Tue Jul 11 08:10:52 UTC 2023


Hi,

I have one service that securely receives a user password. I need to send this password to another service without transmitting it as plaintext over D-Bus, considering security aspects.
I came across systemd-creds. I managed to enable openssl in systemd compilation and to encrypt/decrypt a file from the terminal. However, I haven’t found any examples of how to use system-creds in a C++ program. Are there any relevant APIs in system-devel? If so, what is the exact API I should use to encrypt data in one service and decrypt it in another?

Any suggestions or insights on this matter would be most welcome.

Regards,
Orit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230711/c02cd3eb/attachment.htm>


More information about the systemd-devel mailing list