Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
gsk_decode_import_key() z/OS Cryptographic Services System SSL Programming SC14-7495-00 |
|
Decodes certificate and key from PKCS #12-encoded data stream.
Format
Parameters
ResultsThe function return value will be
0 if no error is detected. Otherwise, it will be one of the return
codes listed in the gskcms.h include file. These are some
possible errors:
UsageThe gsk_decode_import_key() function decodes a data stream into a pkcs_cert_key structure. The pkcs_cert_key structure subject_certificate returns the subject certificate and key, while the pkcs_certificates structure issuer_certificates returns the certificate chain for the subject certificate (all other certificates not part of the subject certificates chain are discarded). The root certificate for the chain is the final entry in the array. The certificate and key must have been encoded according to the Personal Information Exchange Syntax (PKCS #12). The supplied stream can be the binary ASN.1 sequence or the Base64 encoding of the ASN.1 sequence. A Base64 encoded stream is assumed to be in the local code page and must include the encoding header and footer lines. In FIPS mode,
the only supported decryption algorithm for the import file is:
|
Copyright IBM Corporation 1990, 2014
|