12 Dec 2013
 
Tirasa

Create PKCS12 client certificate via OpenSSL

Written by fabio

As is so often the case, working with SSL you need to configure and test a strong authentication (SSL client authentication). In all these cases, you need to provide an ad-hoc client certificate to perform a succesful handshake.

Read All »

11 Dec 2013
 
Tirasa

Create a new keystore to host a server ssl certificate

Written by fabio

Few basic steps to create a complete keystore to host a server certificate. Create your custom self-signed CA if not yet available a trusted one # openssl genrsa -des3 -out ca.key 1024 # openssl req -new -x509 -day

Read All »

02 Dec 2013
 
Tirasa

Inhibiting line-wrap in ldapsearch output

Written by fabio

As you should know, each ldapsearch line output is wrapped: the max size of a line output is of 79 characters. By the way, as is so often the case, ldapsearch output is retrieved to be automatically processed by a script or something else: in these cases the line wrapping usually is a big problem.

Read All »

28 Nov 2013
 
Tirasa

Manage Javascript and CSS dependencies via Maven

Written by ilgrosso

Every JEE developer will eventually need some Javascript & CSS spice in his applications: jQuery, jQuery UI, Bootstrap, AngularJS, highlight.js, YUI ... What's the usual solution? Grab files from somewhere and statically include them in your source tree.

Read All »

18 Nov 2013
 
Tirasa

Getting around Active Directory search size limit via ldapsearch

Written by fabio

Asking for a large set of results via ldapsearch to an Active Directory (AD) you will get a "size limit exceeded" error message. Searches of Active Directory performed without paging are limited to returning a maximum of the first 1000 records.

Read All »

23 Oct 2013
 
Tirasa

Document your RESTful API with Cocoon 3

Written by ilgrosso

There are lots of ways of documenting RESTful APIs in Java: just google a bit and you will find the nice Enunciate and Swagger, for example. Such approachs, however, are often quite invasive and hardly customizable. Many providers - like as Apache CXF - are able to dynamically generate a WADL representation out of JAX-RS annotated classes: such XML representation can be easily put into an XSLT transformation in order to obtain some end-user REST documentation.

Read All »

12 Jul 2013
 
Tirasa

Rename ldap entry via ldapmodify

Written by fabio

Wow, today I learned a wonderful thing: the ldif syntax to rename an ldap/AD entry. If you want to rename "mario.rossi" with "Mario Rossi" you can do the following.

Read All »

22 Feb 2013
 
Tirasa

Jexl syntax example

Written by massi

This post because I googled to find some Jexl syntax example but I didn't find it!

Read All »