Client registration and enrollment