-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add RDP #46
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: Daniil Klimuk <[email protected]>
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DaniilKl no problem
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only for debug/developer images but it'd probably be better if we generated keys on first boot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ce7b522: keys are generated only on first boot
@DaniilKl Added key generation on first boot and changed most |
Signed-off-by: Michał Iwanicki <[email protected]>
Copied from one of our internal projects. @m-iwanicki, sorry for copying your changes, but I really don't want to lose them.