CertAPI
TheForArkLD (205)

CertAPI


CertAPI generates key and csr and cert by GET request or POST request.
Examples :

https://certapi.theforarkld.repl.co/g/2048/JP/Tokyo/Minato-ku/undef/undef/undef

https://certapi.theforarkld.repl.co/g


How to use?

If you want use GET Request then, access by this url.

https://certapi.theforarkld.repl.co/g/bits/country-name/state-name/locality-name/organization-name/organizational-unit-name/common-name

If you want use POST Request then, run this script.

var https=require('https')
var req=https.request('https://certapi.theforarkld.repl.co',{method:'POST',headers:{'content-type':'application/json'}},(res)=>{
var chunk=''
res.on('data',data=>chunk+=data)
res.on('end',()=>{
console.log(JSON.parse(chunk))
})
})
req.write(JSON.stringify({
bits:'bits number',
country:'country name',
state:'state name',
locality:'locality name',
orgname:'organization name',
orgunit:'organizational unit name',
commname:'common name'
})
req.end()

CertAPI is supporting application/x-www-form-urlencoded !

You are viewing a single comment. View All