Interface KeyAndCertificateFactory

    • Field Detail

      • DEFAULT_KEY_GENERATION_AND_SIGNING_ALGORITHM

        static final AsymmetricKeyPairAlgorithm DEFAULT_KEY_GENERATION_AND_SIGNING_ALGORITHM
        default key pair generation and signing algorithm
      • NOT_BEFORE

        static final Date NOT_BEFORE
        Current time minus 1 year, just in case software clock goes back due to time synchronization
      • NOT_AFTER

        static final Date NOT_AFTER
        The maximum possible value in X.509 specification: 9999-12-31 23:59:59, new Date(253402300799000L), but Apple iOS 8 fails with a certificate expiration date grater than Mon, 24 Jan 6084 02:07:59 GMT (issue #6).

        A hundred years in the future from starting the proxy should be enough.

    • Method Detail

      • buildAndSaveCertificateAuthorityPrivateKeyAndX509Certificate

        void buildAndSaveCertificateAuthorityPrivateKeyAndX509Certificate()
      • buildAndSavePrivateKeyAndX509Certificate

        void buildAndSavePrivateKeyAndX509Certificate()
      • certificateNotYetCreated

        boolean certificateNotYetCreated()
      • certificateAuthorityX509Certificate

        X509Certificate certificateAuthorityX509Certificate()