

# openssl x509 -noout -text -in /etc/apache2/ssl/apache.pem Looking at the "Not Before" and "Not After" fields in the output below shows the lifetime. # make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pemįinally I took a peak at the generated certificate to make sure it had the 10 year lifetime. The hostname was already filled in, so I just had to hit return at the only prompt. 7,12 -Now I went ahead and generated the new certificate. # diff -c /usr/share/ssl-cert/ssleay.cnf /usr/share/ssl-cert/ # cp /usr/share/ssl-cert/ssleay.cnf /usr/share/ssl-cert/ Now I edited the Openssl configuration file to bump the lifetime to 10 years (3650 days): I started by cleaning out the old certificate (you'll get an error later if you don't do this): This time I wanted to generate a really long-lived (10 year) certificate so I didn't have to deal with this again in a year. Now, double-click the batch file and it will then launch your program as administrator.I noticed the SSL certificate I had previously generated for Apache had expired, so I set about generating a new one.Give it any name you like, but replace the default. Next, save the file by clicking File -> Save.You need to replace the full path of ISO2Disc with your desired application. The above script will make the ISO2Disc utility to always run as administrator.

REM -> If error flag set, we do not have admin.Įcho Requesting administrative privileges.Įcho Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"Įcho UAC.ShellExecute "C:\Program Files (x86)\Top Password\ISO2Disc.exe", "", "", "runas", 1 > "%temp%\getadmin.vbs" >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"


Right-click on the shortcut of your program, and then select Properties from the context menu.Method 1: Always Run as Administrator from Program Shortcut In this tutorial we’ll show you 4 methods to make your program always run as administrator by default. Could I force a program to always run as an administrator? Is it possible to automatically open a batch file as admin when you double-click on it? Many old programs need to be run as administrator in order to function properly on Windows 10 / 8 / 7.
