Skip to content

Use this repo to help you to build a secure application from the scratch, without the need to debug the security links and protocols later. The best solution is usually the easiest

License

Notifications You must be signed in to change notification settings

JaoSchmidt/haproxy-secure-dev-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is to locally test your new service configuration before send to the server

First edit /etc/hosts

OBS: On windows it's normally under \WINDOWS\system32\drivers\etc (If there isn't one, just create it).

Then insteall the certificates

sudo pacman -S mkcert
mkcert -install
mkcert ldap.example.local#

Merge both certificates into one for haproxy:

cat /etc/letsencrypt/live/$1/fullchain.pem /etc/letsencrypt/live/$1/privkey.pem > /etc/haproxy/certs/$1.pem

Then, edit haproxy to view the ceritificates:

bind                        *:443 ssl crt /certs/ldap.example.local-full.pem

About

Use this repo to help you to build a secure application from the scratch, without the need to debug the security links and protocols later. The best solution is usually the easiest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages