if(options.s&&options.s.toLowerCase()!=='ecc'&&options.s.toLowerCase()!=='rsa')returnmessage.channel.createMessage(`${this.client.stores.emojis.error} ***Invalid signing type, choose between \`ecc\` or \`rsa\``);
if(options.c&&(!Number(options.c)||Number(options.c)<1||Number(options.c)>3))returnmessage.channel.createMessage(`${this.client.stores.emojis.error} ***Invalid class selected, choose between Class \`1\`, \`2\` or \`3\``);
if(options.m&&(!Number(options.m)||(options.m!=='256'&&options.m!=='384'&&options.m!=='512')))returnmessage.channel.createMessage(`${this.client.stores.emojis.error} ***Invalid SHA Digest selected, choose between \`256\`, \`384\` or \`512\``);
if(total>=allowed)returnmsg.edit(`${this.client.stores.emojis.error} ***Not enough certificate allowances - please ask a member of staff to increase this limit from ${total}***`);
if(Number(options.c)>data.message.class)returnmsg.edit(`${this.client.stores.emojis.error} ***Class too low, you are on a class ${data.message.class} account***`);
this.client.getDMChannel(account.userID).then((channel)=>channel.createMessage('Your SecureSign password has been reset - please reinitialize your SecureSign account')).catch();
if(!exec.replace(/^\s+|\s+$/g,'').endsWith('Successfully wrote certificate.'))thrownewError(`Certificate generation did not complete successfully:\n${cmd}`);
returnmsg.edit(`${this.client.stores.emojis.success} ***Successfully created certificate***`);