googling internet about using certificate and keys from PKCS12 file lead to convert it to PEM.it requires some additional utilities (openssl not default windows application) and manual steps to convert.
this patch allow using PKCS12 directly from stunnel.
example configuration:
cert = /home/dab/.certs/my.p12
PKCS12-files detected by file extension (.p12 or .pfx, no case sensetive) and load specially.
password prompted if needed, empty password also supported.
code based on examples from:
and windows.