[strongSwan] Issue with load-tester key/cert

pankaj razdan pankajrazdan at yahoo.com
Mon Jan 20 10:27:13 CET 2020


Hello,
I am facing issue with load-tester. I have taken key and certificate from **src/libcharon/plugins/load_tester/load_tester_creds.c** but when I try to print this key and certificate using **pki** command, I am getting error as follows

sudo ipsec pki --print --in initiator_key.pem
  file coded in unknown format, discardedbuilding CRED_CERTIFICATE - X509 failed, tried 4 buildersparsing input failed----------------------------------------------------------------------------------sudo ipsec pki --print --in initiator_cert.pem  file coded in unknown format, discardedbuilding CRED_CERTIFICATE - X509 failed, tried 4 buildersparsing input failed

=====================================================================Contents of initiator_cert taken from e source:src/libcharon/plugins/load_tester/load_tester_creds.c (static char cert[])=====================================================================MIICJjCCAY+gAwIBAgIBADANBgkqhkiG9w0BAQsFADA3MQwwCgYDVQQDEwNzcnYxEjAQBgNVBAsTCWxvYWQtdGVzdDETMBEGA1UEChMKc3Ryb25nU3dhbjAeFw0xOTAyMDgwODUyMjVaFw0yOTAyMDgwODUyMjVaMDcxDDAKBgNVBAMTA3NydjESMBAGA1UECxMJbG9hZC10ZXN0MRMwEQYDVQQKEwpzdHJvbmdTd2FuMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDQXr7poAPYZLxmTCqR51STGRuk9Hc5SWtTcs6b2RzpnP8EVRLxJEVxOKE9Mw6n7mD1pNrupCpnpGRdLAV5VznTPhSQ6k7ppJJrxosRYg0pHTZqBUEC7nQFwAe10g8q0UnM1wa4lJzGxDH78d21cVweJgbkxAeyriS0jhNs7gO5nQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUytOG/alLWTyyO6ElA3cGwIzkofYwDQYJKoZIhvcNAQELBQADgYEAIdCzmJAwCj6VaDacc7yOhZK61nGzNJml5NEeLzZkGzYvsIggL/Kb2v42fKYC5OunkZ1Nw3YY207LR7wrhS7pndHfRMny86RwJ4d6LmiwtgbzTAbm3HL/iENDiyiJfCTknTvzMj9OkGfz0rGDkJqIxx0inxp84PWWR5lX84A9pNQ=

=====================================================================Contents of responder_cert taken from e source:src/libcharon/plugins/load_tester/load_tester_creds.c (static char private[])=====================================================================MIICXQIBAAKBgQDQXr7poAPYZLxmTCqR51STGRuk9Hc5SWtTcs6b2RzpnP8EVRLxJEVxOKE9Mw6n7mD1pNrupCpnpGRdLAV5VznTPhSQ6k7ppJJrxosRYg0pHTZqBUEC7nQFwAe10g8q0UnM1wa4lJzGxDH78d21cVweJgbkxAeyriS0jhNs7gO5nQIDAQABAoGACVACtkxJf7VY2jWTPXwaQoy/uIqYfX3zhwI9i6eTbDlxCE+JDi/xzpKaWjLa99RmjvP0OPArWQB239ck03x7gAm2obutosGbqbKzJZS5cyIayzyW9djZDHBdt9HoquKB39aspWit3xPzkrr+QeIkiggtmBKALTBxTwxAU+P6euECQQD4IPdrzKbCrO79LKvoPrQQtTjL6ogag9rI9n2ZuoK3/XVybh2byOXT8tA5G5jSz9Ac8XeVOsnH9gT53WXeaLOFAkEA1vrm/hVSEasp5eATgQ7ig9CF+GGKqhTwXp/uOSl/h3IRmStu5J0C9AkYyx0bn3j5R8iUEX/C00KSE1kQNh4NOQJAVOsLYlRG2idPH0xThQc4nuM2jes1K0Xm8ZISSDNhm1BeCoyPC4rExTW7d1/vfG5svgsRrvvQpOOYrl7MB0Lz9QJBALhgAWJiyLsskEd90Vx7dpvUaEHo7jMGuEx/X6GYzK5Oj3dNP9NEMfc4IhJ5SWqRJ0KAbTVA3MexLXT4iqXPSkkCQQDSjLhBwvEnSuW4ElIMzBwLbu7573z2gzU82Mj6trrwOsoox/vmcepT1Wjy4AvPZHgxp7vEXNSeS+M5L29QNTp8
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------So during IKE exchange authentication is failing.
Please let me know how can I resolve this issue.
Thanks,Pankaj



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20200120/2d2dbc40/attachment.html>


More information about the Users mailing list