with SSLMate — Cert Spotter API 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 SSLMate — Cert Spotter API allows you to monitor SSL/TLS certificates across the web, catching potentially misissued certs and identifying certificates that could affect your domain security. By tapping into the API with Pipedream, you can automate alerts, integrate certificate data into security analyses, and streamline compliance checks by reacting to newly issued certificates in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sslmate_cert_spotter_api: {
type: "app",
app: "sslmate_cert_spotter_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.certspotter.com/v1/issuances`,
headers: {
Authorization: `Bearer ${this.sslmate_cert_spotter_api.$auth.api_key}`,
},
params: {
domain: `example.com`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})