is it possible to implement mTLS using cloudflare free plan or not?

?
18 Replies
Cyb3r-Jak3
Cyb3r-Jak3•2w ago
Cloudflare Docs
Client certificates | Cloudflare SSL/TLS docs
Use Cloudflare public key infrastructure (PKI) to create client certificates and enforce mutual Transport Layer Security (mTLS) encryption.
a4amaan
a4amaan•2w ago
thanks i implemented it and its working fine.. one last think its working for example.com but not api.example.com and i saw this.. is there any solution for it so that it work on subdomain?
No description
a4amaan
a4amaan•2w ago
do i will need to create certs locally?
Cyb3r-Jak3
Cyb3r-Jak3•2w ago
It should work fine as long as the certificate match
MDev
MDev•2w ago
Note that * wildcards are not supported, the api.example.com domain will probably require its own cert or re-create your existing cert to include api subdomain 😉
a4amaan
a4amaan•2w ago
for this you mean adding api.example.com in SSL/TSL -> Origion Certificate or SSL/TSL -> Edge Certificates ????
MDev
MDev•2w ago
the cert on your origin, where api resolves to if it's SSL protected by the wildcard, *.example.com thats probably the issue, needs to be explicitlly set 😉 api.example.com
a4amaan
a4amaan•2w ago
i removed * one and added api.example.com, regenerated cliente cert and followed all steps but its not accessible with or without certificate
MDev
MDev•2w ago
tried again with a hard refresh? CTRL Shift R?
a4amaan
a4amaan•2w ago
i am testing it with python requests library it was working for example.com but not for subdomain
MDev
MDev•2w ago
Ooh if you visit the domain in a browser, what does the SSL cert tell you? valid?
a4amaan
a4amaan•2w ago
yes app is working fine with ssl, but when i activate WAF rule it is not accessible
MDev
MDev•2w ago
is it for *.example.com or the api.example.com the cert viewed from browser?
a4amaan
a4amaan•2w ago
it saying example.com
MDev
MDev•2w ago
My CF proxied records for example will still display:
Not critical
DNS Name: example.com
DNS Name: *.example.com
Not critical
DNS Name: example.com
DNS Name: *.example.com
even with custom SSL certs on my origin. But i don't want you to un-proxy the record either. I hope there's a way to generate custom certs, probably with the custom cert manager on Cloudflare 😉 for the url api.example.com cert only for example.com?
a4amaan
a4amaan•2w ago
i have DM you the url...
a4amaan
a4amaan•2w ago
here is a working example for domain example.com with and without client certificate
No description
a4amaan
a4amaan•2w ago
but samething is not working in case of subdomain abc.example.com
Want results from more Discord servers?
Add your server