Skip to main content

I am setting up a pipeline in AzureDevOps (first time) and keep getting this error: error:1E08010C:DECODER routines::unsupported. 

Here is my YAML , can anyone take a look and tell me what I might be missing? 

 

trigger:  branches:    include:      - mainpool:  vmImage: 'ubuntu-latest'variables:  - group: SalesforceSecrets  - name: SFDX_CLI_VERSION    value: lateststages:  - stage: DeployToProduction    jobs:      - job: Deploy        steps:          - checkout: self          - task: NodeTool@0            inputs:              versionSpec: '18.x'            displayName: 'Install Node.js'          - script: |              npm install --global sfdx-cli            displayName: 'Install Salesforce CLI'          - script: |              echo "$SFDX_HUB_KEY" > server.key              sfdx force:auth:jwt:grant \                --clientid "$(SFDX_CLIENT_ID)" \                --jwtkeyfile server.key \                --username "gabriel.swenson@amtrustgroup.com" \                --setdefaultusername \                --instanceurl https://login.salesforce.com            displayName: 'Authenticate to Production'            env:              SFDX_CLIENT_ID: $(SFDX_CLIENT_ID)              SFDX_HUB_KEY: $(SFDX_HUB_KEY)          - script: |              sfdx force:source:deploy -p force-app -u "$(gabriel.swenson@amtrustgroup.com)" --testlevel RunLocalTests --wait 30            displayName: 'Deploy to Production'
1 Antwort
  1. 3. Juli 2025, 19:14

    Hi @Gabe Swenson

     

     

    The DECODER routines::unsupported error occurs because your JWT key’s PEM formatting was lost when you echoed the secret.  

    To solve the issue use something like echo -e "$SFDX_HUB_KEY" > server.key so the key file retains proper line breaks before running sfdx force:auth:jwt:grant 

    Please refer to this documentation:

    https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_jwt_flow.htm

0/9000