You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to use acmephp in some self-written software.
AcmeClient->finalizeOrder unfortunatly only accepts CSRs in the form of CertificateRequest-objects, not directly as a CSR, because the requestCertificate-Method then calls signCertificateRequest to generate a CSR.
I'd like to provide a custom CSR as a string. Any ideas on how to nicely implement this?
One method I could imagine would be to have a string-variable in CertificateRequest that you could populate with a custom CSR, another would be a second method that accepts CSRs directly.
Any suggestions on how to implement this? Would you accept a pull request implementing this functionality?
so long,
Tobi
The text was updated successfully, but these errors were encountered:
Update CertificateRequest to add methods isSigned, setSignature, getSignature
Create a CertificateRequestFactory with methods createFromString, and createFromDistinguishedName (don't forget to parse the string and provide a DistinguishedName. Beware some methods like requestCertificate uses the $csr->getDistinguishedName()->getSubjectAlternativeNames() which rely on subject alternatives name inside the CSR, but methods like openssl_csr_get_subject may not return those informations)
Update the signCertificateRequest method to skip signature if the certificate is alreadySigned
You could also use the new getSignature method in finalizeOrder
Hi,
I'm currently trying to use acmephp in some self-written software.
AcmeClient->finalizeOrder unfortunatly only accepts CSRs in the form of CertificateRequest-objects, not directly as a CSR, because the requestCertificate-Method then calls signCertificateRequest to generate a CSR.
I'd like to provide a custom CSR as a string. Any ideas on how to nicely implement this?
One method I could imagine would be to have a string-variable in CertificateRequest that you could populate with a custom CSR, another would be a second method that accepts CSRs directly.
Any suggestions on how to implement this? Would you accept a pull request implementing this functionality?
so long,
Tobi
The text was updated successfully, but these errors were encountered: