Hi again!
My next OpenVPN problem :)
After I switched to TUN device and back to TAP my m0n0wall neither
wants to create a tap nor a tun interface.
Interface status screen tells me "ifconfig: interface tap0 does not exist"
Yesterday it worked perfectly now it doesn't anymore without any special
reason :(
--- 10 minutes later ---
I just tried to restart OpenVPN and now I'm able to see a syslog
message, which tells me:
openvpn[448]: Cannot load certificate file /var/db/ovpn_srv_cert.pem:
error:0906D066:PEM routines:PEM_read_bio:bad end line:
error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
A cat on /var/db/ovpn_srv_cert.pem tells me that there are 3 empty line
in the middle of
my certificate:
---snip
-----BEGIN CERTIFICATE-----
MIIDrzCCAxigAwIBAgIBATANBgkqhkiG9w0BAQQFADCBljELMAkGA1UEBhMCREUx
DDAKBgNVBAgTA05SVzESMBAGA1UEBxMJQmllbGVmZWxkMRUwEwYDVQQKEwxtcm1h
bmlhYy5sYW4xDTALBgNVBAsTBGhvbWUxHjAcBgNVBAMTFW1ybWFuaWFjMmsuZHlu
ZG5zLm9yZzEfMB0GCSqGSIb3DQEJARYQbXJtYW5pYWNAZ214Lm5ldDAeFw0wNDEw
MjQxOTMwNDlaFw0xNDEwMjIxOTMwNDlaMH4xCzAJBgNVBAYTAkRFMQwwCgYDVQQI
EwNOUlcxFTATBgNVBAoTDG1ybWFuaWFjLmxhbjENMAsGA1UECxMEaG9tZTEaMBgG
A1UEAxMRZ2F0ZS5tcm1hbmlhYy5sYW4xHzAdBgkqhkiG9w0BCQEWEG1ybWFuaWFj
QGdteC5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMFpUw9SAmHw5k+d
NRXK34/1VwbBeSrOYrlz+opUeppxXbL5S7SzsdHS4UoUAzaqAjw2oKnhYBskSekL
MoXr2OQcXdLeB9DaUFxIGrOVdduzOajXHOC4MV8a1tFUTM6UluNxc+nz6EvooumQ
ePKxuIsG/jMu0LUeiEqH4xY/gm5rAgMBAAGjggEiMIIBHjAJBgNVHRMEAjAAMCwG
CWCGSAGG+EIBDQQfFh1PcGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNV
HQ4EFgQUICB0f6Rm8HdrRUIRJ0f8Ssx+F5YwgcMGA1UdIwSBuzCBuIAU6wglVGAC
mU9kSZ1CuxNFwCaw+e2hgZykgZkwgZYxCzAJBgNVBAYTAkRFMQwwCgYDVQQIEwNO
UlcxEjAQBgNVBAcTCUJpZWxlZmVsZDEVMBMGA1UEChMMbXJtYW5pYWMubGFuMQ0w
CwYDVQQLEwRob21lMR4wHAYDVQQDExVtcm1hbmlhYzJrLmR5bmRucy5vcmcxHzAd
BgkqhkiG9w0BCQEWEG1ybWFuaWFjQGdteC5uZXSCAQAwDQYJKoZIhvcNAQEEBQAD
gYEAk2VUl3rl2i+fFn5mEm1Gusp5xWOqYzKR6xs6mdmnUXSMLYTAt3TPrec/5URS
H5GPNvrEYnaODHerakk1fIfrvuLE0+eYetRVtyLC86gzApFkQsIY66rh931grCUd
zTx25vkfvPX1ZXBRrh6hacQ3mjzu2eNOp4mJJqcenPkzbhU=
-----END CERTIFICATE-----
---EOF(ovpn_srv_cert.pem)
I definitely did not copy-pasted those 3 lines inside the config
textfield, so is it possible
that there is a xml-php parsing error?
Ok, no answer needed anymore for my starting question ;) Now it works again
after removing the lines.
Thanks anyway for reading :)
Greetings,
Andre