   (deftest initialize!-test
     (testing "Generated SSL file"
       (try
-        (initialize! ca-settings ssldir-contents "master" 512)
+        (initialize! ca-settings master-settings "master" 512)
         (doseq [file (concat (vals cadir-contents) (vals ssldir-contents))]
           (testing file
             (is (fs/exists? file))))

    (testing "Keylength"
      (doseq [[message f expected]
              [["can be configured"
                (partial initialize! ca-settings ssldir-contents "master" 512)
                512]
               ["has a default value"
                (partial initialize! ca-settings ssldir-contents "master")
                utils/default-key-length]]]
        (testing message
          (try

  (deftest initialize-master!-test
    (let [serial-number-file (temp-serial-number-file)]
      (try
        (initialize-master! master-settings "master" "Puppet CA: localhost"
                            (utils/pem->private-key cakey)
                            (utils/pem->cert cacert)
                            512
