Packages

o

play.core.server.ssl

CertificateGenerator

object CertificateGenerator

Used for testing only. This relies on internal sun.security packages, so cannot be used in OpenJDK.

Source
CertificateGenerator.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CertificateGenerator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def generateRSAWithMD5(keySize: Int = 2048, from: Instant = Instant.now, duration: Duration = Duration.ofDays(365)): X509Certificate
  2. def generateRSAWithSHA1(keySize: Int = 2048, from: Instant = Instant.now, duration: Duration = Duration.ofDays(365)): X509Certificate
  3. def generateRSAWithSHA256(keySize: Int = 2048, from: Instant = Instant.now, duration: Duration = Duration.ofDays(365)): X509Certificate

    Generates a certificate using RSA (which is available in 1.6).

  4. def toPEM(certificate: X509Certificate): String