How to Generate an Authentication Key
emCA provides a GenerateAuthenticationKey.jar file that can be used to generate an authentication key. To generate an authentication key, follow these steps:
Open a command prompt and navigate to the location of the JAR file.
Run the following command:
![](https://emca.emudhra.com/~gitbook/image?url=https%3A%2F%2F2804668976-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOwstGDJbR4yGRTr2aEFp%252Fuploads%252F3CzXji4Tr0oqTJh5W9T1%252Fimage.png%3Falt%3Dmedia%26token%3De30da063-f7e6-48a2-a400-52d298d8bd71&width=768&dpr=4&quality=100&sign=663bee27&sv=1)
Press Enter to enter the username and password that are registered with emCA for the API process.
![](https://emca.emudhra.com/~gitbook/image?url=https%3A%2F%2F2804668976-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOwstGDJbR4yGRTr2aEFp%252Fuploads%252Fo6WYwiYt3NWSHE7YMFrs%252Fimage.png%3Falt%3Dmedia%26token%3Df03e4934-b02c-4d50-b211-6e2710f08880&width=768&dpr=4&quality=100&sign=98ab994f&sv=1)
An authentication key will be generated, as shown below screen.
![](https://emca.emudhra.com/~gitbook/image?url=https%3A%2F%2F2804668976-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOwstGDJbR4yGRTr2aEFp%252Fuploads%252FcpLqA8A61eLnGs0GjlGN%252Fimage.png%3Falt%3Dmedia%26token%3D2eee4b31-83bb-4689-9b57-eaacbdd4ffea&width=768&dpr=4&quality=100&sign=d61d7b8&sv=1)
Note: The authentication key generated must be used in the request header for all APIs.
Last updated