Help! Inline Cert - PEM_read_bio:no start line

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Locked
damienorantes
OpenVpn Newbie
Posts: 1
Joined: Thu Aug 06, 2015 5:43 pm

Help! Inline Cert - PEM_read_bio:no start line

Post by damienorantes » Thu Aug 06, 2015 5:47 pm

Can somebody here tell me with what this means? I'm sort of new to this so any help would be greatly appreciated.

I just installed the latest version of Tunnelblick (3.5.3), installed my client.opvn file and I get an error message and it aborts, I'll attach the log too:

Cannot load inline certificate file: error:0906D06C:PEM routines:PEM_read_bio:no start line: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib

Log:

2015-08-06 10:39:19 *Tunnelblick: OS X 10.10.4; Tunnelblick 3.5.3 (build 4270.4371); prior version 3.5.2 (build 4270.4346)
2015-08-06 10:39:21 *Tunnelblick: Attempting connection with client using shadow copy; Set nameserver = 1; monitoring connection
2015-08-06 10:39:21 *Tunnelblick: openvpnstart start client.tblk 1337 1 0 1 0 16688 -ptADGNWradsgnw 2.3.6
2015-08-06 10:39:22 *Tunnelblick: openvpnstart log:
OpenVPN started successfully. Command used to start OpenVPN (one argument per displayed line):

/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.6/openvpn
--daemon
--log
/Library/Application Support/Tunnelblick/Logs/-SUsers-Sado-SLibrary-SApplication Support-STunnelblick-SConfigurations-Sclient.tblk-SContents-SResources-Sconfig.ovpn.1_0_1_0_16688.1337.openvpn.log
--cd
/Library/Application Support/Tunnelblick/Users/ado/client.tblk/Contents/Resources
--config
/Library/Application Support/Tunnelblick/Users/ado/client.tblk/Contents/Resources/config.ovpn
--cd
/Library/Application Support/Tunnelblick/Users/ado/client.tblk/Contents/Resources
--management
127.0.0.1
1337
--management-query-passwords
--management-hold
--script-security
2
--up
/Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -d -f -m -w -ptADGNWradsgnw
--down
/Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -d -f -m -w -ptADGNWradsgnw

2015-08-06 10:39:21 OpenVPN 2.3.6 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Jul 10 2015
2015-08-06 10:39:21 library versions: OpenSSL 1.0.1p 9 Jul 2015, LZO 2.08
2015-08-06 10:39:21 *Tunnelblick: openvpnstart starting OpenVPN
2015-08-06 10:39:22 *Tunnelblick: Established communication with OpenVPN
2015-08-06 10:39:31 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2015-08-06 10:39:31 Cannot load inline certificate file: error:0906D06C:PEM routines:PEM_read_bio:no start line: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
2015-08-06 10:39:31 Exiting due to fatal error
2015-08-06 10:39:33 *Tunnelblick: No 'post-disconnect.sh' script to execute
2015-08-06 10:39:33 *Tunnelblick: Expected disconnection occurred.

Thanks in advanced!
:shock:

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Help!

Post by Traffic » Tue Aug 11, 2015 9:13 am

damienorantes wrote:Cannot load inline certificate file: error:0906D06C:PEM routines:PEM_read_bio:no start line: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
Perhaps your config is not formatted correctly:
https://community.openvpn.net/openvpn/wiki/IOSinline

Example:
  • <key>
    -----BEGIN RSA PRIVATE KEY-----
    ...
    -----END RSA PRIVATE KEY-----
    </key>

Locked