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

no edit summary
Line 16: Line 16:


# Open the command line application using '''<Windows Key>+<R Key>''' on your keyboard and running the '''CMD''' command;
# Open the command line application using '''<Windows Key>+<R Key>''' on your keyboard and running the '''CMD''' command;
# Go to the OpenSSL bin folder using either of these command lines  
# Go to the OpenSSL bin folder using either of these command lines;
#:: '''CD C:\OpenSSL-Win32\bin\'''  
#:: '''CD C:\OpenSSL-Win32\bin\'''  
#:: '''CD C:\OpenSSL-Win64\bin\'''  
#:: '''CD C:\OpenSSL-Win64\bin\'''  
# 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'''
#:: ''Do not lose this private key as it will be required later on.''
# Create the X509 certificate using the following command line;
# Create the X509 certificate using the following command line;
#:: '''openssl req -new -x509 -key ''<organisation name>''.pem -out ''<organisation name>''.cer -days 1825'''
#:: '''openssl req -new -x509 -key ''<organisation name>''.pem -out ''<organisation name>''.cer -days 1825'''
Line 29: Line 28:
#:: ''Do not lose this X509 Certificate as it will be required later on;''
#:: ''Do not lose this X509 Certificate as it will be required later on;''


You now have a '''Private Key PEM''' file and a public '''X509 Certificate''' required to create the private application in Xero.
You now have a '''Private Key PEM''' file and a public '''X509 Certificate''' required to create the private application in Xero. We recommend you backup both files.
 
Also note that the X509 Certificate will only be valid for 1825 days (5 years) and will need to be replaced eventually.


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


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

edits