Git Product home page Git Product logo

go-proxy's Introduction

go-proxy

go-proxy is an utility library written in Go to handle X509 proxies, with and without VOMS extensions. It supports Legacy, Draft and RFC3820 proxies.

What does it do

  • X509 proxy parsing with and without VOMS exceptions.
  • Re-delegating from an existing proxy.

What doesn't it do

  • It can't acquire VOMS extensions from a VOMS server.
  • It can't create a brand new proxy from a user certificate and key. API limitation, mostly.

GoDoc

Examples

Load a proxy, print its VOMS

package main

import (
	"flag"
	"github.com/ayllon/go-proxy"
	"log"
)

func main() {
	flag.Parse()

	var p proxy.X509Proxy
	if e := p.DecodeFromFile(flag.Arg(0)); e != nil {
		log.Fatal(e)
	}
	log.Print(p.Subject)
	for _, v := range p.VomsAttributes {
		log.Print(v.Vo)
		log.Print(v.Fqan)
	}
}

go-proxy's People

Contributors

ayllon avatar chmike avatar

Stargazers

 avatar

Watchers

 avatar

go-proxy's Issues

test-samples/Fts.pem is apparently bogus

When I try to display the content of each certificate in test-samples/Fts.pem with openssl, I get an error when trying to display the last certificate which I expect is the end user certificate.

The next level certificate has also some weird content. Don’t know if it is correct and expected.

I thus suspect that this certificate is in some way bogus. May we drop it ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.