Clicky

20140913

CalDAV/CardDAV on Windows Phone 8.1 (Lumia Cyan)

In WP8 it was possible to (mis)use the Google account settings to add CalDAV/CardDAV support for calendar synchronization to your own CalDAV/CardDAV server. That method is broken in WP8.1.

The solution is simple. Just add an iCloud account and configure that for your CalDAV server. Check (action from 0:50):
http://www.heise.de/ct/artikel/Praxis-Windows-Phone-8-1-synchronisieren-2281900.html

Result:



20140911

stunnel, hMailserver's security panacea

UPDATE 17-Oct-2014: The POODLE attack has made SSLv3 vulnerable. The stunnel.conf configuration below is modified to disable SSLv3 too.

I am using hMailserver to handle the mail for my email domains. hMailserver has an option to secure the email traffic with SSL. Under the hood it is using OpenSSL for that.

There is a small problem with this configuration:  weak encryption is enabled in hMailserver. It seems that the SSL configuration is hardcoded in hMailserver, I needed a better method to establish and maintain SSL sessions to my mailserver.

An attacker is able to read emails when SSLv2 is used
To make a long story short, stunnel (http://www.stunnel.org) solves this problem. stunnel is an SSL wrapper also based on OpenSSL. It is very flexible and highly configurable. In this case we want to tunnel IMAP and SMTP traffic in an SSL tunnel.

There are only two steps to make hMailserver only accessible through very secure SSL communications.

1. Remove the SSL support in hMailserver

Go to your hMailserver console and remove all SSL protocols leaving only IMAP (port 143) and SMTP (port 25):


2. Add and configure stunnel

Download stunnel (https://www.stunnel.org/downloads/stunnel-5.03-installer.exe) and install in the default or other folder. Have are create the Private Key, Server Certificate (and root certificate) PEM file. Make an stunnel configuration file. 

This  is an example stunnnel.conf:

; Debugging stuff (may useful for troubleshooting)
; 5=normal
; 7=debug
; See:http://www.stunnel.org/static/stunnel.html
debug = 5
output = m:\log\stunnel.log

; Initialize Microsoft CryptoAPI interface
engine = capi

; Certificate/key is needed in server mode and optional in client mode
cert = hmailserver.domain.com.pem
key = hmailserver.domain.com.pem

; Security configuration no.1...
; Disable support for insecure SSLv2 protocol...
options = NO_SSLv2
; Disable also SSLv3 against the POODLE attack...
options = NO_SSLv3

; Security configuration no.2: Allow only stong ciphers...
; Normally the next configuration is secure (enough):
; ciphers = ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH
; However if you are really paranoid, allow only strongest:
ciphers = ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA

; Security configuration no.3...; These options provide additional security at some performance degradation
options = SINGLE_ECDH_USE
options = SINGLE_DH_USE

[imap]
client = no
accept = 993
connect = 143

[smtp]
client = no
accept = 465
connect = 25

Test the config file with the stunnel GUI (stunnel startmenu:"stunnel GUI start").This enables to check the logfile on screen for errors. When this works fine, install the stunnel services (stunnel startmenu:"stunnel Service Install"). Start the stunnel service and check the connectivity.

When everything works hMailserver is only accessible through strong encryption protocols:

stunnels's strong encryption prevents attackers to read your email

Happy emailing!

20140207

Add .NET Framework 3.5 SP1 to Windows 8.1

Many applications are build with .NET 3.5 SP1 libraries. .NET Framework 3.5 SP1 is not a standard Windows 8.1 Feature. Adding this feature can be cumbersome. This method shows the easy way.

1. Start a command prompt with Administrative privileges. You should see this:



2. Place the Windows 8.1 installation DVD in the DVD drive of the computer. It will pop up with a drive letter in Explorer. In this example drive D: is mapped.

3. Type the next command in the command prompt:

C:\> DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs

The process will take a couple of minutes. When ready you can check Programs and Features in Control Panel:

20140117

Aubade 2014 Calendar

The Aubade Calendar 2014 was "only" available if you spend EUR120 or more on their nickers. However, now the calendar is also available for paupers like you and me: download.

Aubade 2014 calendar



20131130

Morale


It was early winter on the tundra. A shepherd was tending his flock of  long haired Musk Ox. It was getting real cold. The shepherd heard a faint bird chirp. He searched between the vegetation and found a little bird overcome by cold. The shepherd asked:"What has happened to you?". The bird replied:"I am lost and I can't fly anymore. I am trembled by cold". The shepherd thought for a little while and said to the bird:"I can help you through the night. Tomorrow you have to fly south and you will get in warmer areas.". He picked up the bird and yanked the poor thing in a big pile of fresh, warm cow manure. The shepherd and his flock moved on. The bird warmed up and started to chirp joyfully. A wandering fox heard the bird, found it and ate the bird.

What is the moral of this story?
  1. Somebody who puts you in the shit is not necessarily your enemy.
  2. Somebody who pulls you out of the shit is not necessarily your friend.
  3. When you are in shit: shut up!

20131125

Best paragraph from an American book

From "Travels with Charley" by John Steinbeck

John Steinbeck wrote a book on a road trip he made in 1960. He "circled" from Long Island, through Maine then to Seatlle, all the way south to California and Texas. On his way back he stopped over at New Orleans.



In 1960 segregated schools were forbidden by law and the white people did not like that. A group of white women was waiting every morning at schools to shout insults to (black) children who went to school.



In the original manuscript, Steinbeck wrote what has been shouted there:

“You mother fucking, nigger sucking, prick licking piece of shit. Why you’d lick a dog’s ass if he’d let you. Look at the bastard drag his dirty stinking ass along. You think that’s his kid? That’s a piece of shit. That’s shit leading shit. Know what we ought to do? Strip down them fancy pants and cut off his balls and feed them to the pigs—that is if he’s got any balls. How about it friends?”

Most likely Steinbeck invented these words himself. It is unlikely that more or less "ordinary" women would have said such well constructed sentences. This paragraph never made it to the book but Steinbeck wrote one of the best paragraphs in the American literature:

"A shrill, grating voice rang out. The yelling was not in chorus. Each took a turn and at the end of each the crowd broke into howls and roars and whistles of applause. This is what they had come to see and hear. No newspaper had printed the words these women shouted. It was indicated that they were indelicate, some even said obscene. On television the sound track was made to blur or had crowd noises cut in to cover. But now I heard the words, bestial and filthy and degenerate. In a long and unprotected life I have seen and heard the vomitings of demoniac humans before. Why then did these screams fill me with a shocked and sickened sorrow?"

50 years later a couple of writers did the same trip again each with a different angle:

Geert Mak: "Reizen zonder John, Op zoek naar Amerika" ("Travels without John, In search of America")
Bill Steigerwald: "Dogging Steinbeck"

Both writers did a thorough research to Steinbeck's book and trip. E.g. both did exactly the same trip 50 years later They both started in Sag Harbor only a couple of hours apart without knowing about each others trip, both read the original manuscript that reveals many "secrets" that never made book. Both writers come to the same conclusion that "Travels with Charley" is a fictional book while it has been sold for almost 50 years as non-fiction. A whole bunch of Steinbeck aficionados are not happy with that...

See more on Steigerwald and Mak:
  • New York Time book review of "Dogging Steinbeck"
  • Steigerwald's website dedicated to "Travels with Charley/Dogging Steinbeck" 
  • Description (in English) of Geert Mak's book. 
  • There seems to be a English translation of Mak's book in preparation (I uncourage anyone to read both books)
  • Google for YouTube videos of both writers/books  

Other reading around this subject:


Real Time Web Analytics