Fix PEM to DER export command for certificate (#410).