{
  "syslog": {
    "network": "",
    "server": "",
    "stdoutlevel": 7
  },

  "statsd": {
      "server": "localhost:8125",
      "prefix": "Boulder"
  },

  "wfe": {
    "listenAddress": "127.0.0.1:4000",
    "allowOrigins": ["*"],
    "certCacheDuration": "6h",
    "certNoCacheExpirationWindow": "96h",
    "indexCacheDuration": "24h",
    "issuerCacheDuration": "48h",
    "shutdownStopTimeout": "10s",
    "shutdownKillTimeout": "1m",
    "debugAddr": "localhost:8000",
    "amqp": {
      "server": "amqp://guest:guest@localhost:5673",
      "insecure": true,
      "RA": {
        "server": "RA.server",
        "rpcTimeout": "15s"
      },
      "SA": {
        "server": "SA.server",
        "rpcTimeout": "15s"
      }
    }
  },

  "ca": {
    "serialPrefix": 255,
    "profile": "ee",
    "debugAddr": "localhost:8001",
    "Key": {
      "File": "test/test-ca.key"
    },
    "expiry": "2160h",
    "lifespanOCSP": "96h",
    "maxNames": 1000,
    "cfssl": {
      "signing": {
        "profiles": {
          "ee": {
            "usages": [
              "digital signature",
              "key encipherment",
              "server auth",
              "client auth"
            ],
            "backdate": "1h",
            "is_ca": false,
            "issuer_urls": [
              "http://127.0.0.1:4000/acme/issuer-cert"
            ],
            "ocsp_url": "http://127.0.0.1:4002/",
            "crl_url": "http://example.com/crl",
            "policies": [
              {
                "ID": "2.23.140.1.2.1"
              },
              {
                "ID": "1.2.3.4",
                "Qualifiers": [ {
                  "type": "id-qt-cps",
                  "value": "http://example.com/cps"
                }, {
                  "type": "id-qt-unotice",
                  "value": "Do What Thou Wilt"
                } ]
              }
            ],
            "expiry": "2160h",
            "CSRWhitelist": {
              "PublicKeyAlgorithm": true,
              "PublicKey": true,
              "SignatureAlgorithm": true
            },
            "ClientProvidesSerialNumbers": true
          }
        },
        "default": {
          "usages": [
            "digital signature"
          ],
          "expiry": "8760h"
        }
      }
    },
    "maxConcurrentRPCServerRequests": 16,
    "hsmFaultTimeout": "300s",
    "amqp": {
      "serverURLFile": "test/secrets/amqp_url",
      "insecure": true,
      "serviceQueue": "CA.server",
      "SA": {
        "server": "SA.server",
        "rpcTimeout": "15s"
      },
      "Publisher": {
        "server": "Publisher.server",
        "rpcTimeout": "15s"
      }
    }
  },

  "pa": {
    "dbConnect": "mysql+tcp://policy@localhost:3306/boulder_policy_integration",
    "challenges": {
      "simpleHttp": true,
      "dvsni": true,
      "http-01": true,
      "tls-sni-01": true,
      "dns-01": true
    }
  },

  "ra": {
    "rateLimitPoliciesFilename": "test/rate-limit-policies.yml",
    "maxConcurrentRPCServerRequests": 16,
    "maxContactsPerRegistration": 100,
    "debugAddr": "localhost:8002",
    "amqp": {
      "serverURLFile": "test/secrets/amqp_url",
      "insecure": true,
      "serviceQueue": "RA.server",
      "VA": {
        "server": "VA.server",
        "rpcTimeout": "60s"
      },
      "SA": {
        "server": "SA.server",
        "rpcTimeout": "15s"
      },
      "CA": {
        "server": "CA.server",
        "rpcTimeout": "15s"

      }
    }
  },

  "sa": {
    "dbConnectFile": "test/secrets/sa_dburl",
    "maxConcurrentRPCServerRequests": 16,
    "debugAddr": "localhost:8003",
    "amqp": {
      "serverURLFile": "test/secrets/amqp_url",
      "insecure": true,
      "serviceQueue": "SA.server"
    }
  },

  "va": {
    "userAgent": "boulder",
    "debugAddr": "localhost:8004",
    "portConfig": {
      "httpPort": 5002,
      "httpsPort": 5001,
      "tlsPort": 5001
    },
    "maxConcurrentRPCServerRequests": 16,
    "amqp": {
      "serverURLFile": "test/secrets/amqp_url",
      "insecure": true,
      "serviceQueue": "VA.server",
      "RA": {
        "server": "RA.server",
        "rpcTimeout": "15s"
      }
    }
  },

  "sql": {
    "SQLDebug": true
  },

  "revoker": {
    "dbConnectFile": "test/secrets/revoker_dburl",
    "amqp": {
      "serverURLFile": "test/secrets/amqp_url",
      "insecure": true,
      "RA": {
        "server": "RA.server",
        "rpcTimeout": "15s"
      },
      "SA": {
        "server": "SA.server",
        "rpcTimeout": "15s"
      }
    }
  },

  "ocspResponder": {
    "source": "mysql+tcp://ocsp_resp@localhost:3306/boulder_sa_integration",
    "path": "/",
    "listenAddress": "localhost:4002",
    "maxAge": "10s",
    "shutdownStopTimeout": "10s",
    "shutdownKillTimeout": "1m",
    "debugAddr": "localhost:8005"
  },

  "ocspUpdater": {
    "dbConnectFile": "test/secrets/ocsp_updater_dburl",
    "newCertificateWindow": "1s",
    "oldOCSPWindow": "2s",
    "missingSCTWindow": "1m",
    "revokedCertificateWindow": "1s",
    "newCertificateBatchSize": 1000,
    "oldOCSPBatchSize": 5000,
    "missingSCTBatchSize": 5000,
    "revokedCertificateBatchSize": 1000,
    "ocspMinTimeToExpiry": "72h",
    "oldestIssuedSCT": "72h",
    "signFailureBackoffFactor": 1.2,
    "signFailureBackoffMax": "30m",
    "debugAddr": "localhost:8006",
    "amqp": {
      "serverURLFile": "test/secrets/amqp_url",
      "insecure": true,
      "SA": {
        "server": "SA.server",
        "rpcTimeout": "15s"
      },
      "CA": {
        "server": "CA.server",
        "rpcTimeout": "15s"
      },
      "Publisher": {
        "server": "Publisher.server",
        "rpcTimeout": "15s"
      }
    }
  },

  "activityMonitor": {
    "debugAddr": "localhost:8007",
    "amqp": {
      "serviceQueue": "Monitor",
      "serverURLFile": "test/secrets/amqp_url",
      "insecure": true
    }
  },

  "mailer": {
    "server": "mail.example.com",
    "port": "25",
    "username": "cert-master@example.com",
    "password": "password",
    "dbConnectFile": "test/secrets/mailer_dburl",
    "messageLimit": 0,
    "nagTimes": ["24h", "72h", "168h", "336h"],
    "nagCheckInterval": "24h",
    "emailTemplate": "test/example-expiration-template",
    "debugAddr": "localhost:8008",
    "amqp": {
      "serverURLFile": "test/secrets/amqp_url",
      "insecure": true,
      "SA": {
        "server": "SA.server",
        "rpcTimeout": "15s"
      }
    }
  },

  "publisher": {
    "maxConcurrentRPCServerRequests": 16,
    "debugAddr": "localhost:8009",
    "amqp": {
      "serverURLFile": "test/secrets/amqp_url",
      "insecure": true,
      "serviceQueue": "Publisher.server",
      "SA": {
        "server": "SA.server",
        "rpcTimeout": "15s"
      }
    }
  },

  "common": {
    "baseURL": "http://127.0.0.1:4000",
    "issuerCert": "test/test-ca.pem",
    "dnsResolver": "127.0.0.1:8053",
    "dnsTimeout": "10s",
    "dnsAllowLoopbackAddresses": true,
    "ct": {
      "logs": [
        {
          "uri": "http://127.0.0.1:4500",
          "key": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEfahLEimAoz2t01p3uMziiLOl/fHTDM0YDOhBRuiBARsV4UvxG2LdNgoIGLrtCzWE0J5APC2em4JlvR8EEEFMoA=="
        }
      ],
      "submissionRetries": 1,
      "submissionBackoff": "1s",
      "intermediateBundleFilename": "test/test-ca.pem"
    }
  },

  "certChecker": {
    "dbConnectFile": "test/secrets/cert_checker_dburl"
  },

  "subscriberAgreementURL": "http://127.0.0.1:4001/terms/v1"
}
