add method to create DER file