Advertisement
Guest User

Untitled

a guest
Sep 16th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. openssl.cnf - is the file you used earlier.
  2.  
  3. $ openssl req -new -config openssl.cnf -key client-new-2048.key -out client-new-2048.csr
  4.  
  5. Use Commone Name "aidanxc"
  6.  
  7. $ openssl x509 -req -days 365 -in client-new-2048.csr -signkey client-new-2048.key -out client-new-2048.crt -extfile openssl.cnf -extensions ssl_client
  8.  
  9. $ orapki wallet add -wallet ./test_wallet -user_cert -cert ./client-new-2048.crt
  10.  
  11. $ orapki wallet display -wallet ./test_wallet
  12.  
  13. Now you have wallet configured and the test .crt & .key files for curl:
  14.  
  15. - Upload client-new-2048.crt
  16.  
  17. - Try testing:
  18. curl -q -k --cert ./client-new-2048.crt --key ./client-new-2048.key https://identitysso.betfair.com/api/certlogin -d 'username=rxelgin&password=chocolate1' -H "X-Application: curlCommandLineTest"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement