Get or generate a new signing certificate:
openssl req -x509 -nodes -sha256 -days 3650 -newkey rsa:2048 -keyout saml.key -out saml.crt
Update the script and update the following settings:
SIGNING_CERT/SIGNING_KEY
: Certificate and private key.CONNECTION_NAME
: Name of your SAML-P ConnectionAUTH0_DOMAIN
: Auth0 DomainAUTH0_CLIENT_ID
: Client ID of the API Explorer ClientAUTH0_CLIENT_SECRET
: Client Secret of the API Explorer Client
Run the script:
yarn add auth0
yarn add node-fetch
node index
After running the script you will see that the metadata file contains the custom signing certificate:
https://my-account.auth0.com/samlp/metadata?connection=name-of-my-connection
To validate that it worked you can inspect the signing certificate here: https://www.sslshopper.com/certificate-decoder.html