Allow reading cert and key from memory #301