-
Notifications
You must be signed in to change notification settings - Fork 9
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
quote handling #6
Conversation
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.
looks great, only request is putting the quote to a file
src/main.rs
Outdated
let cert = fs::read(CERTIFICATE_PATH).await.expect("cert not found"); | ||
let config = | ||
RustlsConfig::from_pem(cert, pkey.private_key_to_pem_pkcs8().unwrap()).await.unwrap(); | ||
let addr = SocketAddr::from(([0, 0, 0, 0], 8001)); |
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.
ports are good as untrusted env parameters, give the host some fleixiblity
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.
Session handling looks fine
Later we could include some automation to run certbot appropriately to fulfill the CSR but that's not the business of the enclave