Posted On March 29, 2019

HAProxy with Multiple SSL Certs

kimconnect 0 comments
blog.KimConnect.com >> Codes , Linux >> HAProxy with Multiple SSL Certs
Method 1:
———
defaults
  log 127.0.0.1 local0
  option tcplog
 
frontend ft_test
  mode http
  bind 0.0.0.0:443 ssl crt /certs/haproxy1.pem crt /certs/haproxy2.pem
  use_backend bk_cert1 if { ssl_fc_sni dragoncoin.com } # content switching based on SNI
  use_backend bk_cert2 if { ssl_fc_sni kimconnect.com } # content switching based on SNI
 
backend bk_cert1
  mode http
  server srv1 <ip-address2>:80
 
backend bk_cert2
  mode http
  server srv2 <ip-address3>:80

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Set PasswordNeverExpires on SamAccountName

Quick 1-liner Code $accounts=@( 'orange', 'apple', 'pear', 'dog', 'cat', 'dinosaur', 'chicken', 'cow', 'yomama', 'yodada' )…

PowerShell: Copy SMB Share Permissions from Legacy Sources

Scenario:Windows 2008 File Servers migration lacks a built-in function to clone Share Permissions - Get-SmbShareAccess…

PowerShell: Alternative to Test-NetConnection for Legacy Windows

This little snippet is useful as a helper function to quickly determine port connectivity between…