2017年2月14日星期二

WhatsApp uses port

WhatsApp is not designed to be used with proxy configurations or restricted networks, and we cannot provide support for these network configurations.

If you are a network administrator, you should allow traffic on all subdomains of *.whatsapp.net. WhatsApp uses TCP port numbers 443 and 5222, and UDP port numbers 3478, 53, 40020, 57923.


WhatsApp Support Team

2016年11月21日星期一

Self-Signed, Root CA and Intermediate CA Certificates

In this article I will be discussing about the following:
  • Self-Signed Certificate
  • Root CA Certificate
  • Intermediate CA Certificate
At the end I would like everyone to be able to differentiate between these certificate types.
Self Signed Certificate
Self Signed Certificates are certs where both the Issued To and the Issued By field of the certificates are same. In simple words it is a certificate where one issues a certificate to itself and hence the name Self Signed Certificate. Here is one example:
image
As seen in the above image the Issued to and Issued by are same. You may also observe the warning indicating that the certificate is not trusted. Of course it is not as it is self-signed, none of the Known Public CA’s have issued this, so it wont be trusted.


NOTE: To get past the above error put the cert in the Root CA store.
These certs come in handy as they can be created easily using several tools. Obtaining a certificate from a noted Certification Authority has a cost associated with it and may not be feasible at all times. Developers typically test their applications using a self signed certificates most of the times.
Root CA Certificate
Root CA Certificate is a CA Certificate which is simply a Self-signed Certificate. This certificate represents a entity which issues certificate and is known as Certificate Authority or the CA. The usage of the certificate distinguishes it with other normal certificates. Now a CA can be classified as either Root CA’s or Intermediate CA’s. On a Windows OS, if you are looking at the certificate store, you would see all the Root CA certificates in the Trusted Root Certification Authorities. This by default includes the list of public root CA’s which are installed with Windows and are updated periodically through Windows Updates. The number of the certificates would be lesser.


NOTE: Don’t add Intermediate CA certificates to the Trusted Root Certification Authorities store.

Identification of a Root CA:
Now how do we differentiate the CA certificates as Root CA or Intermediate CA. There is so much fuss around this. Its actually easy, look at the CA cert. If the Issued to and Issued by are same then it is a Root CA or else it is a Intermediate CA. Another identification would be to look at the Certification Path. The Cert which appears at the top of the list is the Root CA. Below is one example of one of the public root CA’s:
image
If you think logically this makes sense. CA’s are supposed to issue certificates. Now if I start the process from the beginning, then someone has to issue a certificate to himself and then start the process of issuing the certs down the line.
I’m not going to discuss the purpose of the CA certificate as that would lead to a whole new discussion altogether.
Intermediate CA Certificate
Intermediate CA Certificate is a CA certificate which is not a Self-signed Certificate. The purpose of this certificate may be same as the Root CA or different. Now one may think why to have a intermediate CA at all. Well here is what I think:
Initially it may not require to have a Intermediate CA, as the Root CA’s will serve the purpose. However as the requirement for PKI increases so would the number of CA’s. Understanding that CA at the end of the day is a Server Machine performing this computational task, it is required to have multiple machines. So they have to be replicated. Now it is again not viable to have many Root CA’s in the case of a Internet Scenario as this could lead to fraud and other management issues. So the concept of Intermediate CA was introduced. The Root CA’s delegated their tasks to the corresponding Intermediate CA’s for this. This way they can have one or more Intermediate CA’s.
On Windows OS, these certificates can be found in the Intermediate Certification Authorities Store. Comparatively the number of certificates in this store would be more compared to Trusted Root Certification Authorities store.
Below is a image of a certificate store of MY or Local Computer account. It contains many certificate stores, but I have only highlighted the ones relevant to this article.

image
ref.: https://blogs.msdn.microsoft.com/kaushal/2013/01/09/self-signed-root-ca-and-intermediate-ca-certificates/

2016年10月14日星期五

Intel® Hardware Accelerated Execution Manager (Intel® HAXM)

Intel® Hardware Accelerated Execution Manager (Intel® HAXM) is a hardware-assisted virtualization engine (hypervisor) that uses Intel® Virtualization Technology (Intel® VT) to speed up Android* app emulation on a host machine. In combination with Android x86 emulator images provided by Intel and the official Android SDK Manager, Intel HAXM allows for faster Android emulation on Intel VT enabled systems.
The following platforms are supported by Intel HAXM:
Microsoft Windows*
Windows® 10 (32/64-bit), Windows* 8 and 8.1 (32/64-bit), Windows* 7 (32/64-bit)
ref : https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

2016年3月17日星期四

VirusScan Enterprise 8.x Access Protection rule blocks outbound SMTP mail on Port 25


VirusScan Enterprise 8.x Access Protection rule blocks outbound SMTP mail on Port 25
技術文章 ID:  KB50707
上次修改:  1/26/2015
已評分:

環境
McAfee VirusScan Enterprise 8.x

For details of VSE 8.x supported environments, see KB51111.
問題
Outbound SMTP email is blocked by VirusScan Enterprise (VSE) 8.x Access Protection rule for Port 25.

Blocked items include:

    Alert and event notifications from McAfee products such as Vulnerability Manager and Network Security Platform.
    Mail from third-party email applications.

    NOTE: This does not include known email clients such as Microsoft Outlook and Lotus Notes.

原因
The VSE 8.x Access Protection feature allows you to block specific ports. Although standard exclusions are set, you must manually revise these rules according to your environment.
解決方案
Manually exclude the process that is being blocked.

NOTE: Ensure you use the exact process name as found in the Access Protection log.

    Click Start, Programs, McAfee, VirusScan Console.
    Right-click Access Protection and select Properties.
    Click the Access Protection tab.
    Under Categories on the left, select Anti-virus Standard Protection.
    In the right pane, select Prevent mass mailing worms from sending mail, then click Edit.
    In the Processes to exclude section, type the process name, then click OK to close the Rule details window.
    Click Apply then close the Access Protection Properties window.

IMPORTANT: Disabling any protection or excluding processes carries inherent risks. Disabling Prevent mass mailing worms from sending email altogether would pose substantial risks to the security of your system(s). Intel Security strongly recommends that you exclude only the minimum number of known and necessary processes.
相關資訊
See also:

    For a list of default exclusions for Port Blocking in VirusScan 8.x, see KB65718. This article also contains a list of processes that can be safely added to the port 25 blocking rule exclusions.
    For an explanation of registry acronyms for VirusScan Enterprise Access Protection rules, see KB72432.
    To review a Whitepaper explaining Access Protection, see PD20870.

ref: https://kc.mcafee.com/corporate/index?page=content&id=KB50707

Default exclusions for Port Blocking in VirusScan 8.x


Default exclusions for Port Blocking in VirusScan 8.x
技術文章 ID:  KB65718
上次修改:  8/4/2015
已評分:

環境
McAfee VirusScan Enterprise 8.x
摘要
The Access Protection feature in McAfee VirusScan 8.x allows specific ports to be blocked. Based on your environment, certain processes might have to be excluded to allow third-party applications to function properly when Port Blocking is enabled. The table below lists the processes that are excluded by default in the various versions of VirusScan Enterprise (VSE) 8.x:
  VSE 8.5i VSE 8.7i VSE 8.8 Comment
agent.exe           * * *
amgrsrvc.exe * * *
apache.exe * * *
ebs.exe * * *
eudora.exe * * *
explorer.exe * * *
firefox.exe * * *
firesvc.exe * * *
iexplore.exe * * *
inetinfo.exe * * *
mailscan.exe * * * Used by WebShield SMTP (EOL).
MAPISP32.exe * * *
mdaemon.exe                 * *
modulewrapper * * *
mozilla.exe * * *
msexcimc.exe * * *
msimn.exe * * *
mskdetct.exe * * *
msksrvr.exe * * *
msn6.exe * * *
msnmsgr.exe * * *
neo20.exe * * *
netscp.exe * * *
nlnotes.exe * * *
nrouter.exe * * *
nsmtp.exe * * *
ntaskldr.exe * * *
opera.exe * * *
outlook.exe * * *
Owstimer.exe   * *
pine.exe * * *
poco.exe * * *
resrcmon.exe * * * Used by Exchange in cluster environments.
rpcserv.exe * * * Used by McAfee products.
SPSNotific   * *
thebat.exe * * *
thunde*.exe * * *
tomcat.exe * * *
tomcat5.exe * * *
tomcat5w.exe * * *
vmimb.exe * * *
webproxy.exe * * *
WinMail.exe   * *
winpm-32.exe * * *
worldclient.exe   * *
wspsrv.exe   * *

In addition to the files listed above, you can manually specify processes to be blocked. Additional processes that can be excluded if applicable are listed in the table below:
Additional Processes to exclude Associated Software
32be.exe Electrasoft 32-bit Email Broadcaster
Foundscan.exe McAfee Foundstone
W3wp.exe Microsoft II6
IMApp.exe Incredimail
Java.exe Allows McAfee IntruShield Manager to send alerts
ActEmail.exe Sage ACT 2005


解決方案

To manually add exclusions to VirusScan Access Protection rules:

    Click Start, Programs, McAfee, VirusScan Console.
    Double-click Access Protection.
    Select Prevent mass mailing worms from sending mail and click Edit.
    Add the appropriate process name to the list of Excluded Processes.
    Click OK and then OK again to close the Access Protection Properties window.

IMPORTANT: Disabling any protection or excluding processes carries inherent risks and disabling Prevent mass mailing worms from sending email altogether poses substantial risks to the security of your system(s). Intel Security strongly recommends that only specific, known and necessary processes be excluded.

ref: https://kc.mcafee.com/corporate/index?page=content&id=KB65718

2016年2月1日星期一

串流影視當前,三種盈利模式

目前的線上影音平台,盈利方法不外乎三種模式:SVOD、AVOD、TVOD。瞭解這三個名詞,就可以明白背後的生意模式。


SVOD = Subscription VOD

SVOD就是如Netflix這一類的服務,依靠訂閱收費來賺錢,這種平台上沒有廣告,依照會員的會費來盈利。而由於是訂閱制,這種模式主要是以包月吃到飽為主。

TVOD = Transactional VOD

TVOD與SVOD是相反的觀念,SVOD是付費吃到飽,但是TVOD則是你依照量來計價,比方說看一片付多少錢,或是看多少流量的內容,支付多少費用。比方說你到Google Play或是iTunes上面租片來看,就算是這種例子。

AVOD = Advertising VOD

AVOD則是你可以免費觀看內容,但是你在觀看之前必須要先點選廣告,或是強制你先看一段廣告。這種例子最常見,像是Youtube就是這樣,幾乎所有免費的影音網站,都會採用AVOD的模式。

除了以上三種模式外,也有的影音網站採用混合式。比方說LiTV就有分免費版以及付費版,免費版的話就是AVOD,你要看廣告才能再看下去。或是你不想看廣告,那就採用付費版。

ref: http://www.techbang.com/posts/41139-yahoo-kimo-television-ecosystem-expansion-opened-spring-festival-will-have-picks-list-eight-tribes-hd-edition-for-free

2014年2月4日星期二

Resize a layer in Photoshop

Article ID: KB101739
  1. Select the layer
  2. Type Ctrl-T to transform
  3. Drag on corner handles (hold Shift button to constrain proportions)
  4. Double-click inside to commit
Watch a short video by clicking the Launch Movie button.

2014年1月21日星期二

TCP and UDP ports used in Apple Product

Http://support.apple.com/kb/TS1629

2013年10月7日星期一

[ownCloud] Cannot show SVG images in Internet Explorer

Solution: https://github.com/owncloud/core/blob/master/core/templates/layout.base.php#L1

Change "core/templates/layout.base.php"

<!DOCTYPE html>
<html class="ng-csp">
<head>
<title>
php p($theme->getTitle()); ?>
print_unescaped(image_path('', 'favicon.png')); ?>" />
print_unescaped(image_path('', 'favicon-touch.png')); ?>" />
foreach ($_['cssfiles'] as $cssfile): ?>
print_unescaped($cssfile); ?>" type="text/css" media="screen" />
endforeach; ?>
foreach ($_['jsfiles'] as $jsfile): ?>
endforeach; ?>
foreach ($_['headers'] as $header): ?>
print_unescaped('<'.$header['tag'].' ');
foreach ($header['attributes'] as $name => $value) {
print_unescaped("$name='$value' ");
};
print_unescaped('/>');
?>
endforeach; ?>

print_unescaped($_['content']); ?>


2013年9月9日星期一

How to Import and Export SSL Certificates in IIS 5/6

Transferring IIS 5/6 Certificate Files

Background
Want an easier way to export? Our management & troubleshooting tool works on all Windows-based servers.
Windows servers use .pfx files to contain the public key files (your SSL Certificate files, provided by DigiCert) and the associated private key file (generated by your server as part of the CSR).
Since both the public and private keys are needed for an SSL Certificate to function, you need a .pfx backup to transfer SSL server security certificates from one server to another.
This page explains how to back up your certificate on a working server, import the certificate to another server, and then enable the certificate for use on the new server. If you have not yet installed the certificate files that you received from DigiCert on the server that generated your CSR, please see our IIS 5/6 installation instructions page.
Exporting/Backing Up to a .pfx File
  1. On the Start menu click Run and then type mmc.
  2. Click File > Add/Remove Snap-in.
  3. Click Add > Certificates > Add.
  4. Select Computer Account and then click Next. Select Local Computer and then click Finish. Then close the add standalone snap-in window and the add/remove snap-in window.
  5. Click the + to expand the certificates (local computer) console tree and look for the personal directory/folder. Expand the certificates folder.
  6. Right-click on the certificate you want to backup and select ALL TASKS > Export.
  7. Choose Yes, export the private key and include all certificates in certificate path if possible. 
    Warning: Do not select the delete private key option.
  8. Leave the default settings and then enter your password if required.
  9. Choose to save the file and then click Finish. You should receive an "export successful" message. The .pfx file is now saved to the location you selected.
Importing from a .pfx File
  1. On the Start menu click Run and then type mmc.
  2. Click File > Add/Remove Snap-in.
  3. Click Add > Certificates > Add.
  4. Select Computer Account and then click Next. Select Local Computer and then click Finish. Then close the add standalone snap-in window and the add/remove snap-in window.
  5. Click the + to expand the certificates (local computer) console tree and look for the personal directory/folder. Expand the certificates folder.
  6. Right-click on the certificate you want to backup and select ALL TASKS > Import.
  7. Follow the certificate import wizard to import your primary certificate from the .pfx file. When prompted, choose to automatically place the certificates in the certificate stores based on the type of the certificate.
Enabling a New Certificate on a Server
  1. On the Start menu, click Administrative Tools > Internet Information Services (IIS) Manager.
  2. In the IIS manager, right-click the site that you want to use the certificate for and select Properties.
  3. Navigate to Directory Security > Server Certificate. This will start the server certificate wizard.
  4. If given the option, choose to Assign an existing certificate to the site and choose the certificate that you just imported.
    If you do not have that option, you should be asked what you want to do with the current certificate on the site. Choose the option to replace your current certificate.
  5. Browse to the .pfx file that you created earlier and then finish the certificate wizard. You may have to restart IIS or the server for it to recognize the new certificate.

ref: http://www.digicert.com/ssl-support/pfx-import-export-iis.htm

DigiCert SSL Cert Util SSL Import/Export Instructions

Exporting an SSL Certificate from one Microsoft Windows Server for Importing in Windows

If you wish to export an installed SSL certificate from a Micrsoft server type and it's corresponding private key as a .PFX file to use either as a backup or for importing to another server follow the instructions below. 
If you need your SSL Certificate in Apache .KEY format, please see the guide to Export an SSL Cert from a Windows Server to Apache with the DigiCert Util.
  1. Download and Run the DigiCert Certificate Management Tool on the Microsoft server.
  2. Select the certificate you want to export to a PFX file and click Export. 

    Select Certificate then click Export Button 
  3. To export this file to a Microsoft server type (e.g. IIS, Exchange, Office Communications Server, ISA, TMG) or other server/device that accepts a .PFX, .P12 file or PKCS#12 file leave all the options as their defaults and click Next. 

    To export the certificate to an Apache server or other software platform or device that requires that the private key and certificate files are kept separate, click the key file (Apache compatible format) option, then choose the location to save this file and click Finish. 

    Select Certificate then click Export Button 
  4. Create a new password that will need to be entered to import the certificate onto other servers and click next. 

    Select Certificate then click Export Button 
  5. Choose the location and filename where you want the PFX file saved and click Finish.
    Select Certificate then click Export Button

ref: http://www.digicert.com/util/pfx-certificate-management-utility-import-export-instructions.htm

Export a Server Certificate (IIS 6.0)

Web server certificates contain information about the server that allows the client to positively identify the server over a network before sharing sensitive information, in a process called authentication. Secure Sockets Layer (SSL) uses these certificates for authentication, and uses encryption for message integrity and confidentiality. SSL is a public key–based security protocol that is used by Internet services and clients to authenticate each other and to establish message integrity and confidentiality.
If you use SSL to protect confidential information exchanged between the Web server and the client, you must migrate or export the certificates and the associated private keys from the source server to the target server.

Requirements

•
Credentials: Membership in the Administrators group on the local computer.
•
Tools: Iis.msc.

Recommendation

As a security best practice, log on to your computer using an account that is not in the Administrators group, and then use the Run as command to run IIS Manager as an administrator. At the command prompt, type runas /user:administrative_accountname mmc %systemroot%\system32\inetsrv\iis.msc.

Procedures

To export a server certificate

1.
In the Run dialog box, type mmc, and then click OK. The Microsoft Management Console (MMC) appears.
2.
If you do not have Certificate Manager installed in MMC, you need to install it.
For more information on how to add the Certificate snap-in to an MMC console, see the procedure "To add the Certificates Snap-in to MMC" in Install a Server Certificate this appendix.
3.
In the console tree, click the logical store where the certificate you want to export exists. Usually this is in the Certificates folder in the Personal directory underCertificates (Local Computer) on the Console Root.
4.
Right-click the certificate you want to export, click All Tasks, and click Export to start the Certificate Export Wizard.
5.
Click Next.
6.
On Export Private Key, click Yes to export the private key.
  Important
You must export the private key along with your certificate for it to be valid on your target server. Otherwise, you will have to request a new certificate for the target server.
7.
In the Export File Format dialog box, click the format you want for the certificate. If the certificate has already been formatted, that format is selected as the default. Click Next.
Do not select Delete the private key if export is successful, because this will disable the SSL site that corresponds to that private key.
8.
Continue to follow steps in the wizard, and enter a password for the certificate backup file when prompted. Using a strong password is highly recommended because it ensures that the private key is well protected.
9.
Type the name of the file you want to export, or click Browse to search for the file. Click Next.
10.
Click Finish to complete the Certificate Export Wizard.

2013年6月27日星期四

Super Utilities for Visio

http://www.sandrila.co.uk/visio-utilities/

I nice to for Visio, such as copy and combine files.

How to enable Ping in Windows Server

GUI – Graphical User Interface
1. Open Control Panel, then select System and Security by clicking on that header
-
-
2. Select Windows Firewall
-
-
3. Advanced Settings
-
-
4. In ‘Windows Firewall with Advanced security’ click on ‘Inbound rules’
-
-
5. Scroll down to ‘File and Printer sharing (Echo request – ICMPv4-In)
-
-
6. Rightclick on the rule and select ‘Enable rule’
-
-
Make sure that it turns green
Done, close down the ‘Windows Firewall with Advanced Security’ windows and then the Control panel.
Verify functionality by pinging the servers own IP address from a command or PowerShell prompt.
Done!
Back to top

-
-
PowerShell
(This will enable the existing rule exactly as the instruction above does)
Import-Module NetSecuritySet-NetFirewallRule -DisplayName “File and Printer Sharing (Echo Request – ICMPv4-In)” -enabled True
 
EnablePing
(ABove enables the existing rule, below will create a new rule that allows ICMPv4/Ping and enable it)
Import-Module NetSecurityNew-NetFirewallRule -Name Allow_Ping -DisplayName “Allow Ping”  -Description “Packet Internet Groper ICMPv4″ -Protocol ICMPv4 -IcmpType 8 -Enabled True -Profile Any -Action Allow
 
EnablePing2
(For IPv6 Ping you obviously enable the v6 Inbound Rule…)