In theory it’s making sure the localhost gem is loaded and use BIND=ssl://HOST:PORT.
I haven’t checked if the SSL client certs are properly working though, but I doubt you can also issue client certificates with the localhost gem. You can also combine the approaches and tell Puma to use existing certificates.