with DigiCert and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The DigiCert API provides a programmatic interface to manage the lifecycle of SSL/TLS certificates, offering automation for tasks such as ordering, reissuing, and renewing certificates. Using Pipedream, you can harness this API to create powerful workflows that enhance your certificate management process, ensuring security compliance, automating routine tasks, and integrating with other services, like monitoring systems or deployment pipelines.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
digicert: {
type: "app",
app: "digicert",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.digicert.com/services/v2/user`,
headers: {
"Content-Type": `application/xml`,
"X-DC-DEVKEY": `${this.digicert.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})