Examination of the source-code of 'HTTP::Server::PSGI' in its 'prepare_socket_class' method indicates that a check for 'IO::Socket::SSL' is already being done if SSL is requested. But you'd need to trace through the calling code to see if it is being requested.