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

Invalid key alias error while creating a virtual host

Hi,

I am trying to create a secure virtual host on port 443 and have created TLS keystore and reference as below

hen I try to create a virtualhost using the below request I get invalid keyalias error

<VirtualHost name="secure">
 <HostAliases>
 <HostAlias>test.com</HostAlias>
 </HostAliases>
 <Interfaces/>
 <Port>443</Port>
 <OCSPStapling>off</OCSPStapling>
 <SSLInfo>
 <Enabled>true</Enabled>
 <ClientAuthEnabled>false</ClientAuthEnabled>
 <KeyStore>ref://apigeetestkeystoreref</KeyStore>
 <KeyAlias>mykeyalias</KeyAlias>
 </SSLInfo>
 </VirtualHost>

keystore is apigeetestkeystore and reference name is apigeetestkeystoreref

By Verifying the keystore using management api

apigee_host:port/v1/o/{org_name}/e/{env_name}/keystores/apigeetestkeystore

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

All configurations seems fine can someone pls let me know if am missing anything ?

I get the below error

{
    "code": "messaging.config.beans.InvalidKeyAliasReferenceInVirtualHost",
    "message": "VirtualHost secure has invalid keyalias reference mykeyalias. Context Organization:uat;Environment:dev",
    "contexts": []
}

0 3 563
3 REPLIES 3