Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Proxy not able to pickup KeyStore Alias name

We have created a proxy and it is using Target Servers to retrieve target endpoint. The proxy works fine for qa environment but fails for dev environment stating below error.

Error Deploying Revision 2 to dev
Target default has invalid keyalias reference BUS-APIGEE-QA. Context Revision:2;APIProxy:balances;Organization:orgname-nonprod;Environment:dev.

The Target Servers and TLS Key Stores are same for qa and dev environment. We have restarted the servers as well, still proxy is not able to pick up the keystore.

<HTTPTargetConnection>
  <Properties/>
  <SSLInfo>
   <Enabled>true</Enabled>
   <ClientAuthEnabled>true</ClientAuthEnabled>
   <KeyStore>esb-mtls-apigee-keystore</KeyStore>
   <KeyAlias>ESB-APIGEE-QA</KeyAlias>
   <TrustStore>esb-mtls-apigee-truststore</TrustStore>
  </SSLInfo>
  <LoadBalancer>
   <Server name="esb_rest"/>
  </LoadBalancer>
  <Path>/ws/AcctInformation1.0</Path>
</HTTPTargetConnection>

Any help would be greatly appreciated. I have attached the snapshot of Apigee Edge configuration of dev and qa environments.

apigee-dev.jpg

apigee-qa.jpg

Thank you!

Solved Solved
0 8 1,591
1 ACCEPTED SOLUTION

Hi @Vinay Lakshminarayan

1. Run the following command on the Management Server:-

curl -v -u <username> "URL"

where URL is

/e/<Env>/keystores/<KeystoreName>

OName=Orgname

Env=Environment Name

KeystoreName = KeystoreNameWhichHasPrivateKeyPlusPublicKey

2. You will get the below output

{
"aliases" : [ {
"aliasName" : "KeystoreName",
"cert" : "KeystoreName-cert",
"key" : "KeystoreName-key"
} ],
"certs" : [ "KeystoreName-cert" ],
"keys" : [ "KeystoreName" ],
"name" : "KeystoreName"
}

3. The aliasName above is the alias name of your keystore.

View solution in original post

8 REPLIES 8