I tried using the new asn1dn (RSA Cert Subject) identifier option on
my certificate based VPN (1.3b11), but it caused racoon to quit. It
seems that if you do not enter the DN (leave identifier blank) when
you select RSA Cert Subject, m0n0wall sets the asn1dn identifier as a
quoted, empty string in /var/etc/racoon.conf, which racoon does not
May 12 11:40:06 racoon: INFO: Reading configuration from "/var/etc/racoon.conf"
May 12 11:40:06 racoon: ERROR: /var/etc/racoon.conf:91: """ failed to
May 12 11:40:06 racoon: ERROR: fatal parse failure (1 errors)
Specifying the identifier is optional with asn1dn, since "If string is
omitted, racoon(8) will get DN from Subject field in the certificate."
(man 5 racoon).
I have modified /etc/inc/vpn.inc to omit the quoted empty string when
the identifier type is asn1dn and no identifier is specified. A patch
is attached. I've tested this and it is working for me with explicit
or non-specified asn1dn identifier, as well as other identifier types