Difference between revisions of "Creating an X509 certificate using OpenSSL"

no edit summary
Line 21: Line 21:
# Create a 1024 bit private key using the following command line
# Create a 1024 bit private key using the following command line
#:: '''openssl genrsa -out ''<organisation name>''.pem 1024'''
#:: '''openssl genrsa -out ''<organisation name>''.pem 1024'''
# Navigate to [https://api.xero.com/Application https://api.xero.com/Application] and login to Xero;
#:: ''Do not lose this private key as it will be required later on.''
# If this is not your first private application, click the '''Add Application''' button;
# Create the X509 certificate using the following command line;
# Select '''Private''' as the type of application to create;
#:: '''openssl req -new -x509 -key ''<organisation name>''.pem -out ''<organisation name>''.cer -days 1825'''
# Enter a unique '''Application Name'''. We recommend including the organisation or company name;
#::
# Select the '''organisation''' from the dropdown;
#:: ''When running this command line, you will be prompted for additional inputs such as country, state, locality, etc.''
# Tick the '''Upload X509 certificate file (.cer)''';
#:: ''Organizational Unit, Command Name can be left blank.''
# Click the '''Choose File''' button and browse for your '''X509 Certificate''';
#:: ''Do not lose this X509 Certificate as it will be required later on;''
# Tick the '''Enable Payroll API for this organisation''' if you need payroll data;
 
# Tick the '''I have read and agree to the Xero Developer Platform Terms''';
You now have a '''Private Key PEM''' file and a public '''X509 Certificate''' required to create the private application in Xero.
# Click the '''Save''' button to save the private application settings;
# Click both '''Show''' buttons under '''OAuth Credentials''';
# Make note of both the '''Consumer Key''' and '''Consumer Secret''' as you will need them later.


== Related Topics ==
== Related Topics ==


* [[Connecting ODBClink to Xero using a private certificate]]
* [[Connecting ODBClink to Xero using a private certificate]]
1,349

edits