private static Time time(final ChronoLocalDateTime<LocalDate> localDateTime) {
        return new Time(Date.from(localDateTime.toInstant(ZoneOffset.UTC)));
    }
<p>store.</p>

@param ks a {@link KeyStore} object
@param certificate a {@link X509Certificate} object
@param privateKey a {@link PrivateKey} object
@throws Exception if any.
pac4j-saml/src/main/java/org/pac4j/saml/metadata/keystore/BaseSAML2KeystoreGenerator.java