mirror of
https://github.com/corda/corda.git
synced 2025-01-03 19:54:13 +00:00
Addressed PR issues
This commit is contained in:
parent
5064cbb5c0
commit
f999da3a4d
@ -36,7 +36,9 @@ class JiraCertificateRequestStorage(val delegate: CertificationRequestStorage,
|
|||||||
val response = getResponse(requestId)
|
val response = getResponse(requestId)
|
||||||
if (response !is CertificateResponse.Unauthorised) {
|
if (response !is CertificateResponse.Unauthorised) {
|
||||||
val request = StringWriter()
|
val request = StringWriter()
|
||||||
JcaPEMWriter(request).writeObject(PemObject("CERTIFICATE REQUEST", certificationData.request.encoded))
|
JcaPEMWriter(request).use{
|
||||||
|
it.writeObject(PemObject("CERTIFICATE REQUEST", certificationData.request.encoded))
|
||||||
|
}
|
||||||
val commonName = certificationData.request.subject.commonName
|
val commonName = certificationData.request.subject.commonName
|
||||||
val email = certificationData.request.subject.getRDNs(BCStyle.EmailAddress).firstOrNull()?.first?.value
|
val email = certificationData.request.subject.getRDNs(BCStyle.EmailAddress).firstOrNull()?.first?.value
|
||||||
val nearestCity = certificationData.request.subject.getRDNs(BCStyle.L).firstOrNull()?.first?.value
|
val nearestCity = certificationData.request.subject.getRDNs(BCStyle.L).firstOrNull()?.first?.value
|
||||||
|
Loading…
Reference in New Issue
Block a user