acidburn0zzz / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
1 stars 0 forks source link

PEM RSA keys without passwords fail #283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate PEM RSA key without password
2. Create connection using key
3. Attempt to connect
4. Enter blank password

What is the expected output? What do you see instead?

Expected to connect, instead the log tells me that the password parameter 
expected a parameter.

Original issue reported on code.google.com by russ.d...@gmail.com on 26 Sep 2014 at 6:48

GoogleCodeExporter commented 9 years ago
the app should only request a password if the pem file looks like it wants a 
password. Can you paste the first few lines?

        if (data.contains("Proc-Type: 4,ENCRYPTED"))
            return true;
        else if (data.contains("-----BEGIN ENCRYPTED PRIVATE KEY-----"))
            return true;

Original comment by arne@rfc2549.org on 26 Sep 2014 at 8:58

GoogleCodeExporter commented 9 years ago
I've switched to using an inline key vs a separate file and that works. I also 
can't get it to reproduce using the old way. Weird.

Original comment by russ.d...@gmail.com on 26 Sep 2014 at 9:39

GoogleCodeExporter commented 9 years ago
Closing the bug as not reproduciable

Original comment by arne@rfc2549.org on 26 Sep 2014 at 10:19