Import Private Key error
search cancel

Import Private Key error

book

Article ID: 375572

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Error when importing private key file (.p8) into Layer7 API Gateway policy manager

Dialog error "Import failed: stream does not represent a PKCS12 key store"

Environment

Gateway 11.0

Mobile Gateway (MAS)

Cause

Resolution

The latest release GW 11.1.1 includes graphman, this can be used to import PEM key (private) into the trusted key store.

OR

Possibility 

Using the GW 11.0 with the two assertions 

Encode JWT

Decode JWT

Set a context variable with TEXT value of the private, then encode/decode using the context variable 

Set Context Variable "key"

Example of using context variable "key" in Encode JWT assertion

Additional Information

The two assertions "Encode JWT" & "Decode Encode JWT" require a valid MAS license install

"Use of Layer 7 SecureSpan Suite major version 11 featuring Mobile and MAS"