Skip to content

Instantly share code, notes, and snippets.

View koenighotze's full-sized avatar
🎯
Focusing

David Schmitz koenighotze

🎯
Focusing
View GitHub Profile
@essandess
essandess / SMIME Encrypted Email Example with Gmail and Comodo.md
Last active January 10, 2023 16:35
S/MIME Encrypted Email Example with Gmail and Comodo and macOS

S/MIME Encrypted Email Example with Gmail and Comodo

A quick how-to installation for secure S/MIME installation for a Gmail account on macOS. This certificate can be used to simultaneously encrypt and sign emails.

Obtain and install an S/MIME Certificate

  1. Create a unique revocation passphrase in a password manager—long, random, unique.
  2. Browse to Comodo and request a free, secure email certificate:
  • Enter your name, email address, and specify the maximum 2048 bit length
  • Enter your revocation passphrase in case your private key is ever stolen or compromised
@sruehl
sruehl / CheckLocalDate.java
Created December 1, 2014 17:21
LocalDateValidator JSR-303
package training.domain;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.time.temporal.ChronoUnit;