I've got a private key in addition to a public key to pin certificate.
How would authenticate with the to the server?
$ file *
foo.der: data
foo.private.der: data
derived with openssl from
foo.key: PEM RSA private key
foo.pem: PEM certificate
what i need is an alamofire equivalent of this:
curl --key foo.key --cert foo.pem --location --request GET 'https://somhostofmine/v1/welcome/'
$ curl --key ./client_key.pem --cert ./client.pem --location --request GET 'https://someurl' "Hello wold!"
works
$ curl --cert ./client.pem --location --request GET 'https://someurl/v1/welcome/' curl: (58) unable to set private key file: './client.pem' type PEM
does not
So suggestions to use certificate itself without private key do not work.
Are we dealing with certificate pinning here or given the presence of the private key this is something else going here???