No, I'm not certain I don't need a username, but I am certain I don't need a password, as I don't have one. I am connecting successfully using a program called "tumbleweed". It may be sending a username. However, I did try using your library with a username and was unable to log in.
Unfortunately I can't test too much - too many login failures will cause a lockout.
Can you tell me how this would be done, assuming I do need a username (but no password) and a pki certificate?