Skip to content

Instantly share code, notes, and snippets.

@alisade
Created May 26, 2016 01:34
Show Gist options
  • Save alisade/d9242f9ecd826c0befd25e8f6ee4a434 to your computer and use it in GitHub Desktop.
Save alisade/d9242f9ecd826c0befd25e8f6ee4a434 to your computer and use it in GitHub Desktop.
curl -X POST --data-urlencode 'RequestData={"tokenID":"tk_XXXXXXXXXXXXXXXXXXXXXXXXXXX","actionType":"ApplyCertificate","certType":"DVSSL","domains":"server1.example.com","CSR":"-----BEGIN CERTIFICATE REQUEST-----\nMIICijCCAXICAQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx\nITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDCCASIwDQYJKoZIhvcN\nAQEBBQADggEPADCCAQoCggEBANXFBaltFrZpRPAu3nPeXqOysVJcV/Ds4ZiY3Zuw\nnO5lqtWD2BczufYe6Y7xbf7JtbVfCcN0ML8kgyBkbOQmhnqiglpPzURSEdu5PbuO\nmSr4BXaKIUYlMbSJO0T9QE7z0kA1c1+37QdmZ/84ns+KxgwdRuIEtAe28NYaO7P0\nLVez8nZB1vN8WcdAjWyvUxCDzgxV4nwwc5sCSzf45RWmKMshV3P2EMKsEtazwM7O\nBLZSXUJKb1cWXAvN1yotONYkTEKbigJdhPLgC46fviM2zy7snl+Z1ISgWC8o/ROU\nvGJTPTFs2vCK6ArxqyLuDycFPSrnDpsVIxOTPDeXp5cy1dkCAwEAAaAAMA0GCSqG\nSIb3DQEBCwUAA4IBAQAcOhkQl++gu6dv6y+/62Rc3FfMni2TJAJsJkIosIPppZS9\n5WMQRIEaGGImbCT7PKSqPqwt6oJcMjHuqN/9ou95n7fs4lK8Z6+0wfaFJjS17Rwp\nmHgImpnX3gmH3NUs4f1tms8vFMAWXpfiZ/0BKauAJjzqd1VdKXr6tD6vBwioRCVO\nuKvx+pXFf13RYofw36NtSqJgYJkcgDvNufV72UC26mFPXXW4KQo9KVyDE2RY0A5d\nJqtCXOLeRk5x/ONkVmsK5J9UNnK54Fgnrw1mNaGeYOn72vRzXpQFWMZkJwKRZoYz\ndPMeEU71Q8LEy/3Aol0LoM1vLDGobT2LotwZp1ug\n-----END CERTIFICATE REQUEST-----"}' --cert ~/cert.pem https://apitest.startssl.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment