Implemented a MessageFactory to handle the default certificate