Class DevelopmentCertificates

java.lang.Object
org.acemq.amqp.security.dev.DevelopmentCertificates

public final class DevelopmentCertificates extends Object
Generates a throwaway certificate authority and the certificates a local broker and client need, so that running with TLS on a developer's machine is one command rather than an afternoon with openssl.

Everything produced here carries ACEMQ DEVELOPMENT ONLY - DO NOT TRUST in its subject, and AceMQ refuses such a certificate unless the policy explicitly calls allowDevelopmentCertificates(). That is the point: a self-signed authority that drifts into production is worse than no encryption, because everything looks protected and nothing is verified. These fail closed instead.

Certificates are short-lived by default. A development certificate that never expires is one that outlives the reason it was created.

  • Field Details

    • MARKER

      public static final String MARKER
      Written into every subject, and refused by the library unless explicitly allowed.
      See Also:
  • Constructor Details

    • DevelopmentCertificates

      public DevelopmentCertificates()
  • Method Details