Code example for X500Principal