Skip to content
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

Verify SSL certificate with a Bukdu server #106

Open
NiharikaPatel opened this issue Aug 31, 2020 · 3 comments
Open

Verify SSL certificate with a Bukdu server #106

NiharikaPatel opened this issue Aug 31, 2020 · 3 comments

Comments

@NiharikaPatel
Copy link

Hi,
I have an SSL certificate from Amazon API gateway and I need to verify it with the Bukdu server. The Documentation shows how to do it with a Node.js server. What would be the syntax / similar code to replicate on Bukdu ?
Thanks!

@wookay
Copy link
Owner

wookay commented Aug 31, 2020

see keyword argument sslconfig.
https://juliaweb.github.io/HTTP.jl/dev/public_interface/#Server-/-Handlers-1

using MbedTLS
Bukdu.start(port; sslconfig=MbedTLS.SSLConfig("resources/cert.pem", "resources/key.pem"))

@NiharikaPatel
Copy link
Author

Okay thank you, I have the server key, server certificate and the api client certificate.
key: fs.readFileSync('server-key.pem'),
cert: fs.readFileSync('server-cert.pem'),
ca: fs.readFileSync('apig-cert.pem')

where should the apig-cert.pem which is the client certificate go ?

@wookay
Copy link
Owner

wookay commented Aug 31, 2020

ah. that sslconfig used for only general SSL server.
I'm not an expert at Amazon API Gateway.
and I don't have enough time to investigate such node package ( https://www.npmjs.com/package/client-certificate-auth ) now.

there's #aws channel in the Julia slack. that people may help the similar interests.
https://julialang.slack.com/archives/C91DJB2K1

best regards and stay healthy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants