Skip to content

Instantly share code, notes, and snippets.

@yakivmospan
Created November 7, 2017 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yakivmospan/150388a5e5e52afebf29145a8dc86279 to your computer and use it in GitHub Desktop.
Save yakivmospan/150388a5e5e52afebf29145a8dc86279 to your computer and use it in GitHub Desktop.
.setCertificateNotBefore(startDate) // By default, this date is Jan 1 1970.
.setCertificateNotAfter(endDate) // By default, this date is Jan 1 2048.
.setCertificateSerialNumber(number) // By default, the serial number is 1.
.setCertificateSubject(x500Principal) // By default, the subject is CN=fake.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment