Puma Dev creates it's own SSL certificate to provide the https://hostname.localhost feature and adds it to your system certificates - but Ruby clients doen't use that. So you need manually add the PumaDev cert to the certs Ruby uses.
For Rails, add a file like config/initializers/puma_dev_client_ssl.rb
- but we don't want this in production. Depending on your setup, you may need it in test also.
if Rails.env.development?
unless File.exist?("/tmp/cert.pem")
# Create a new cert file including both Puma Dev ssl certificate and Ruby's default certs