RE: Passing an as400structure in a ServiceProgramCall
"D*B" <[email protected]> Mon, 4 Apr 2022 09:32:24 +0200
| Newsgroups | gmane.comp.lang.as400.java |
|---|---|
| Message-ID | <2664E20DBAC94AE985F2756C33E79DA6@Lisp> |
Pete, we've had this discussion last year, didn't we? reading the old thread and the follow on now, I'm not sure to understand your problem. Following the ibm docs, I find: <ibm> Note: The QycdRenewCertificate API a is a multi-step process API. The API is called the first time with format RNWC0100 to request a new public/private key pair and receive a certificate signing request based on an expiring certificate. After the CSR has been sent to a certificate authority (CA) and an issued certificate has been received, the API is called a second time with format RNWC0200 to have the newly issued certificate imported into the system certificate store. If an existing CSR is used when requesting a renewed certificate, then import the renewed certificate and maintain the same key pair using format RNWC0300. </ibm> what about the first two steps? In your original code, setting up MNW300 (I don't use the very limited and ugly PCML stuff), I don't find setting the offset should be an 4 byte int containing 8; next 4 byte should contain the length of path and file name, followed by the path and file name. This is making up the first parm of the API call, second would be the length of the first parm (length of path and filename + 8), third parm 'RNWC0300', fourth parm an empty array of char with some bytes space (50 or 100) for error information coming back. D*B -- This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org Before posting, please take a moment to review the archives at https://archive.midrange.com/java400-l. Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com