Integrated mjanssen's work on loading certificates and keys as values