/AWS1/IF_PCY=>GETCERTIFICATESIGNINGREQUEST()¶
About GetCertificateSigningRequest¶
Creates a certificate signing request (CSR) from a key pair.
Method Signature¶
METHODS /AWS1/IF_PCY~GETCERTIFICATESIGNINGREQUEST
IMPORTING
!IV_KEYIDENTIFIER TYPE /AWS1/PCYKEYARNORKEYALIASTYPE OPTIONAL
!IV_SIGNINGALGORITHM TYPE /AWS1/PCYSIGNINGALGORITHMTYPE OPTIONAL
!IO_CERTIFICATESUBJECT TYPE REF TO /AWS1/CL_PCYCERTSUBJECTTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pcygetcrtsigningreq01
RAISING
/AWS1/CX_PCYACCESSDENIEDEX
/AWS1/CX_PCYINTERNALSERVEREX
/AWS1/CX_PCYRESOURCENOTFOUNDEX
/AWS1/CX_PCYSERVICEUNAVAILEX
/AWS1/CX_PCYTHROTTLINGEX
/AWS1/CX_PCYVALIDATIONEX
/AWS1/CX_PCYCLIENTEXC
/AWS1/CX_PCYSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_keyidentifier TYPE /AWS1/PCYKEYARNORKEYALIASTYPE /AWS1/PCYKEYARNORKEYALIASTYPE¶
Asymmetric key used for generating the certificate signing request
iv_signingalgorithm TYPE /AWS1/PCYSIGNINGALGORITHMTYPE /AWS1/PCYSIGNINGALGORITHMTYPE¶
The cryptographic algorithm used to sign your CSR.
io_certificatesubject TYPE REF TO /AWS1/CL_PCYCERTSUBJECTTYPE /AWS1/CL_PCYCERTSUBJECTTYPE¶
The metadata used to create the CSR.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_pcygetcrtsigningreq01 /AWS1/CL_PCYGETCRTSIGNINGREQ01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getcertificatesigningrequest(
io_certificatesubject = new /aws1/cl_pcycertsubjecttype(
iv_city = |string|
iv_commonname = |string|
iv_country = |string|
iv_emailaddress = |string|
iv_organization = |string|
iv_organizationunit = |string|
iv_stateorprovince = |string|
)
iv_keyidentifier = |string|
iv_signingalgorithm = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_certificatesigningreque = lo_result->get_certsigningrequest( ).
ENDIF.