Thursday, March 13, 2014

Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0
  The web server can't load an external php file, to patch it, go to php.ini file, find allow_url_include=off  and set it to on, restart all apache services and it's done !

Note: it's insecure to allow external files to be included in your web page (see why) so use it on your own risk.

Monday, March 10, 2014

RSA operation error
5747:error:0406D06E:rsa routines:RSA_padding_add_PKCS1_type_2:data too large for key size:rsa_pk1.c:151:
Basically RSA is not aimed to encrypt large data file, so you will get this error when you try to encrypt a file such as length(file) > length(RSA key).
I suggest to calculate first hash version of the file using MD5 or SHA-1 then encrypt it using the key.

Note: in real cryptographic system, RSA public/private key are only used to exchange symmetric key.

Friday, March 7, 2014

How to Fix: Ubanble to establish VPN

it was strange for me at first time to get this error , first thing that I did in order to solve it is to check that the VPN server is reachable using Ping command and the firewall is configured to let VPN access ... I found everything working well, so after deep searching I found that Internet Connection Sharing  (ICS) service is the responsible of that, I turned  it off and the VPN tunnel is re-established. 

NB: is not recommended to turn off ICS service permanently 

Tuesday, March 4, 2014

You probably face this error while using OpenSSL
WARNING  can't open config file
Unable to load config info from
That's mean, openssl can't find configuration file - generally known us openssl.cnf - so you have to set the envirement variable OPENSSL_CONF to the configuration file path, for example:

#export OPENSSL_CONF=/etc/ssl/openssl.cnf

That's all folks !

Monday, March 3, 2014

If you get the following error while issuing a digital certificate using OpenSSL library under PHP
error:0D11A086:asn1 encoding routines:ASN1_mbstring_copy:string too short
you probably set an empty string in Distinguished Name (dn) arrayit you want to let it empty just give it " " (space) value.

Saturday, March 1, 2014

I faced the first time this error when I set-up a Domain Controller on Ubuntu using SAMBA 4 and I tried to join this domain using my Windows 7 machine.
Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012 or Windows 8 require some registry changes while dealing with Samba server, to solve this problem just copy and past the following lines in a text editor like Notepad (or bloc note) and save it under .reg extension.
 
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters]
"DomainCompatibilityMode"=dword:00000001
"DNSNameResolutionRequired"=dword:00000000

execute .reg file as administrator, reboot and it's done !