To validate a certificate agains a certificate authority you just have to run
openssl verify -trusted ca_root.pem -untrusted intermediate_ca.pem certificate.pem
You'll see a 'OK' message at the end of the output
package main | |
import ( | |
"bufio" | |
"log" | |
"net/rpc" | |
"os" | |
) | |
func main() { |
#!/usr/bin/env escript | |
% -*- mode: erlang -*- | |
main([BeamFile]) -> | |
{ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(BeamFile,[abstract_code]), | |
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]). |
#! /usr/bin/env escript | |
%% -*- mode: erlang -*- | |
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
%% ex: ts=4 sw=4 ft=erlang et | |
%% | |
%% Copyright 2016 Operable, Inc. All Rights Reserved. | |
%% | |
%% This file is provided to you under the Apache License, | |
%% Version 2.0 (the "License"); you may not use this file |
FROM golang:1.9 | |
WORKDIR /go/src/github.com/purplebooth/example | |
COPY . . | |
RUN go build -ldflags "-linkmode external -extldflags -static" -a main.go | |
FROM scratch | |
COPY --from=0 /go/src/github.com/purplebooth/example/main /main | |
CMD ["/main"] |
apiVersion: batch/v2alpha1 | |
kind: CronJob | |
metadata: | |
name: aws-registry-credential-cron | |
spec: | |
schedule: "* */8 * * *" | |
successfulJobsHistoryLimit: 2 | |
failedJobsHistoryLimit: 2 | |
jobTemplate: | |
spec: |
#!/usr/bin/env -S gnuplot --persist -c | |
# Plot memory and CPU usage over time. Usage: | |
# usage-plot.gp <input file> [<output .png file>] | |
# where the input file has the columns `<unix time> <memory, with m/g suffix> <% cpu>` | |
# To create the input file, see https://gist.github.com/jakubholynet/931a3441982c833f5f8fcdcf54d05c91 | |
# Arguments: | |
infile=ARG1 | |
outfile=ARG2 | |
set term x11 |
# start from golang image based on alpine-3.8 | |
FROM golang:1.10-alpine3.8 AS dev-build | |
# add our cgo dependencies | |
RUN apk add --no-cache ca-certificates cmake make g++ openssl-dev git curl pkgconfig | |
# clone latest seabolt 1.7 source code | |
RUN git clone -b 1.7 https://github.com/neo4j-drivers/seabolt.git /seabolt | |
# invoke cmake build and install artifacts - default location is /usr/local | |
WORKDIR /seabolt/build | |
# CMAKE_INSTALL_LIBDIR=lib is a hack where we override default lib64 to lib to workaround a defect | |
# in our generated pkg-config file |