My sim card has pin. I can already type it via web interface. The problem is with software trying wrong pin till sim card is blocked. After that it doesn’t even asks for PUK and I had to use mobile phone to unlock sim card. Fortunately I had my PUK code around.

What I mean it seems whole SIM PIN interface is not safe and can easily lock your SIM for good if only forgot PUK.