Conversation
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
Contributor
Author
|
This is a WIP PR, and if smbd wants to contribute here - feel free to take over this PR, because I do not have time to finish it currently. |
m-iwanicki
reviewed
Dec 13, 2024
Comment on lines
+6
to
+13
| openssl genrsa -out cakey.pem 2048 | ||
| openssl req -new -x509 -nodes -days 365000 -key cakey.pem -out cacert.pem -subj "/CN=rdp" | ||
| openssl genrsa -out tls.key 2048 | ||
| openssl req -new -key tls.key -out tls.csr -subj "/CN=rdp" | ||
| openssl x509 -req -days 365 -in tls.csr -out tls.crt -CA cacert.pem -CAkey cakey.pem | ||
| install -d "${D}${TLS_DIR}" | ||
| install -m 0644 tls.crt "${D}${TLS_DIR}/tls.crt" | ||
| install -m 0644 tls.key "${D}${TLS_DIR}/tls.key" |
Contributor
There was a problem hiding this comment.
It's only for debug/developer images but it'd probably be better if we generated keys on first boot.
Contributor
|
@DaniilKl Added key generation on first boot and changed most |
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copied from one of our internal projects. @m-iwanicki, sorry for copying your changes, but I really don't want to lose them.