OpenSecurityResearch / hostapd-wpe

Modified hostapd to facilitate AP impersonation attacks
495 stars 97 forks source link

Two certificates? #33

Open mmbaguette opened 2 years ago

mmbaguette commented 2 years ago

How do I add more than one certificate? There's two certificates in this chain. I'm still new to TLS, so I might be missing something.

In this example, I have two certificates in this capture that I want to copy, and use in hostapd-wpe:

image

I tried comma separating them:

# May have to change these depending on build location
eap_user_file=/etc/hostapd-wpe/hostapd-wpe.eap_user
ca_cert=/etc/hostapd-wpe/certs/ca.pem
server_cert=/etc/hostapd-wpe/certs/servercert1.pem,/etc/hostapd-wpe/certs/servercert2.pem                             
private_key=/etc/hostapd-wpe/certs/server.key 
private_key_passwd=whatever
dh_file=/etc/hostapd-wpe/certs/dh

I got: OpenSSL: tls_global_client_cert - Failed to load client certificate error:02001002:system library:fopen:No such file or directory

nemanjan00 commented 2 years ago

I think you should just append one file to the other. I might be wrong