Monday, 12 December 2022

Using OPEN SSL to convert a certificate from the .PFX format to the .PEM format

1.  From command prompt run following command:

openssl pkcs12 -in <import .pfx cert from where> -out <export .pem file to where> -nodes

openssl pkcs12 -in c:\openssl\SSLcert.pfx -out c:\openssl\servercert.pem -nodes

2. Enter SSL cert pricate key password.

3. If MAC verified OK show, mean .pem cert successful exported. 





Thursday, 8 December 2022

#Install OPEN SSL for Windows

Download source: https://sourceforge.net/projects/openssl/files/openssl-1.0.2j-fips-x86_64/

1. After download, extract the zip file. (example: c:\)

2. Go to system properties (or from RUN enter sysdm.cpl)


3. Go to Advanced > Environment Variables.




4. In Environment Variables, select Path, click Edit.



5. In Edit environment variable, select New and enter the extracted directory.
    (example: c:\OpenSSL\bin). Click OK.


6. In Environment Variables, click New.


7. Enter value below:

Variable name: OPENSSL_CONF

Variable value: c:\OpenSSL\bin\openssl.cnf


8. Restart computer.

9. Run Open SSL in cmd. Type openssl version

 





Sunday, 4 September 2022

Fortigate - Block all PING/ICMP and allow PING/ICMP from a specific IP only

Step 1:

Create new addresses or addresses group. (In this example is Trusted PING)


Step 2:

Configure local-in-policy

Edit 1 is to allow ping only for specific IP in addresses group.

Edit 2 is to deny all IP addresses.

From CLI

# config firewall local-in-policy

# edit 1

# set intf "wan1"

# set srcaddr "Trusted PING"

# set dstaddr "all"

# set action "accept"

# set service "ALL_ICMP"

# set schedule "always"

# next

# edit 2

# set intf "wan1"

# set srcaddr "all"

# set dstaddr "all"

# set service "ALL_ICMP"

# set schedule "always"

# next

# end


SAMPLE:




Sunday, 27 March 2022

Download Adobe Reader DC offline installer

Use the following link


https://ardownload2.adobe.com/pub/adobe/acrobat/win/AcrobatDC/2200120085/AcroRdrDCx642200120085_en_US.exe

Description:



Monday, 7 February 2022

Windows Remote Desktop Server - Start Menu Not Working

Windows event log error: Event 1000, DistributedCOM

Issue: Start Menu Not Working (Unresponsive)


Solution:

Create a new key 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy

Value: DWORD

Name: DeleteUserAppContainersOnLogoff

Data: 1




Thursday, 3 February 2022

Remote Desktop connection terminated. RDP disconnected.

Error:
Windows Event ID 1000 Application Error.



Symptoms:
Remote desktop connection disconnected automatically after login successfully.

Resolution:
Remove local resources printer from mstsc.exe.
(Uncheck printer from local recourses)


 

 

Saturday, 8 January 2022

Microsoft DNS server cannot be found event ID 4000

Error:

The description for Event Id (4000) in Source (Microsoft-Windows-DNS-Server-Service) cannot be found. Either the component raises this event is not installed on your local computer, or the installation is corrupted.


Cause:

1. DC/DNS server has lost its Secure channel with itself or PDC. (or restore DC/DNS from old backup)

Solution:

1. Point primary DNS to another DC/DNS IP address.
2. Run CMD as administrator. Type command below:

netdom resetpwd /server:<PDC.domain.com> /userd:<Domain\domain_admin> /passwordd:*

Example:  

netdom resetpwd /server:<DC.contoso.com> /userd:<contoso\administrator> /passwordd:*

3. Enter password of Domain\domain_admin  (user you enter in step 2). 
4. Reboot DC/DNS.