               (or some other object supported by clojure's `reader`)"
   [keystore :- KeyStore
    prefix :- schema/Str
-   pem :- Something]
+   pem :- ReaderSchema]
   (with-open [r (reader pem)]
     (SSLUtils/associateCertsFromReader keystore prefix r)))
 

   returns nil.

   If the :ssl-context and :ssl-ca-cert keys are both missing, an exception will be thrown."
  [options]
  (let [ssl-opts (select-keys options [:ssl-cert :ssl-key :ssl-ca-cert :ssl-ca-crls :ssl-context])
        from-context?           (contains? ssl-opts :ssl-context)
        from-pems?              (every? ssl-opts [:ssl-cert :ssl-key :ssl-ca-cert])

  reference a PEM that contains the CA cert.

  Returns the SSLContext instance."
  [ca-cert :- ReaderSchema]
  (with-open [ca-cert-reader (reader ca-cert)]
    (SSLUtils/caCertPemToSSLContext ca-cert-reader)))

